9 Replies Latest reply: Feb 17, 2010 4:37 PM by 807580 RSS

    regex for splitting a string

    807580
      String str[] = "(ab)20kVp,(abc)30MVp,(cd)3mVp,(de)25GVp".split("\\(");
      the sting above,
      other than splitting "(" and attach "(",
      how to split it null string(I mean zero length character) only followed by letter(s) like,

      (ab)20kVp
      (abc)30MVp
      (cd)3mVp
      (de)25GVp

      Thanks in advance.