Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

How do you split a string by | ?

How do you split a string by |?

 somestring.split("|") doesnt work.

Worth 500 points.

Thanks,
Rick
0
richardsimnett
Asked:
richardsimnett
  • 2
  • 2
1 Solution
 
Ajay-SinghCommented:
Try
 
somestring.split("\|");
0
 
Ajay-SinghCommented:
sorry,
 
somestring.split("\\|");
0
 
richardsimnettAuthor Commented:
if I do that I get an illegal escape character error.

0
 
richardsimnettAuthor Commented:
perfect
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now