1 2 Previous Next 24 Replies Latest reply on Aug 28, 2008 3:59 PM by 807589

    Extract a substring with in a string


      I have a string of as follows
      String s = "cn=whatever,dc=test,dc=com"
      I got to split this string to obtain the part "dc=test,dc=com". So need to get the substring starting from the first dc till the end of the string.

      Could any one explain how do I get it?

      Thanks in advance.
        1 2 Previous Next