Hi,
I have some legacy strings coming from the system. The strings are
delimited with a 2 characters delimiter.
The delimiter is "|:" (i.e. pipe followed by a semicolon).
String foo = "foo|:bar|:toto";
String tokens [] = foo.split("|:");
does not work. I guess the pipe "|" is seen as an OR (i.e. the
split() delimiter becomes empty string OR semicolon).
I tried to escape it with a \, but gwt compiler complains:
Invalid escape sequence (valid ones are \b \t \n \f \r \"
\' \\ )
It seems that not all regexp are supported in the gwt ?
How could I simply parse such string with a 2 characters delimiter
such as "|:" ?
Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---