I have need to split a string based on an ampersand character.
I've tried the following code:
but it returns a JasperException error.
I've tried using "\&" but it tells me that it's an illegal escape character.
Is there a (hopefully) easy way to do this without having to resort to writing a separate function for it?
Thanks in advance
-------------------------------------------------------------------------
Charlie Silverman
Sr. Systems Administrator
Globalstar, LLC
-------------------------------------------------------------------------
We now return you to your regularly scheduled reality.
I've tried the following code:
Code:
String[] result = mystring.split("&");
I've tried using "\&" but it tells me that it's an illegal escape character.
Is there a (hopefully) easy way to do this without having to resort to writing a separate function for it?
Thanks in advance
-------------------------------------------------------------------------
Charlie Silverman
Sr. Systems Administrator
Globalstar, LLC
-------------------------------------------------------------------------
We now return you to your regularly scheduled reality.