6 Replies Latest reply: Sep 30, 2006 7:44 PM by 807569 RSS

    How to split a string for 2 different matching patterns?

      hey guys

      i'm trying to split a string, using .split(regular expression), if two different pattern matches but i don't know the exact syntax for it. I want to split the string from letters and punctuations.

      This is what i'm doing, obviously it's not working, i'm not too sure if syntax are correct.
      String inputDigit [] = input.split("([a-zA-Z]) (\\p{Punct})");
      Please help me with this, thank you!