Java String Tokens

  • + 1 comment

    String regExp = "[ .,!?@_']+"; String[] arr=s.split(regExp); wil give length =0 even in case of white spaces