This discussion is archived
3 Replies Latest reply: Feb 27, 2007 3:20 AM by 807599 RSS

Problem splitting a string.

807599 Newbie
Currently Being Moderated
Hi All,

I'm trying to split a string by using the white space reg exp ie:
result = cmdSplit.split("\s");
However, this won't compile. I get an "illegal escape character" error.
This is for Java 1.4.
Any Ideas?

Thanks.