Link to home
Start Free TrialLog in
Avatar of richardsimnett
richardsimnett

asked on

How do you split a string by | ?

How do you split a string by |?

 somestring.split("|") doesnt work.

Worth 500 points.

Thanks,
Rick
Avatar of Ajay-Singh
Ajay-Singh

Try
 
somestring.split("\|");
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of richardsimnett

ASKER

if I do that I get an illegal escape character error.

perfect