I suppose that you need to use "\||:"
As \| -> the pipe you want to split with
| -> OR
: -> the colon you want to split with
Though I am not very sure on this. :)
Cheers,
Amit
On Fri, Sep 19, 2008 at 3:58 PM, Lothar Kimmeringer <[EMAIL PROTECTED]>wrote:
>
> guiii schrieb:
> > 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 ?
>
> No it means, that \| is not recognized by the java-compiler.
> The backslash is a special character in Strings and must
> be escaped (as you can see in the list of valid escape-
> sequences being showing above). Use \\ and all will be well ;-)
>
>
> Regards, Lothar
>
> >
>
--
Warm Regards,
Amit Dhingra
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---