I have a string that\'s like this: 1|\"value\"|;
1|\"value\"|;
I want to split that string and have chosen | as the separator.
|
My code looks like
you can replace the pipe with another character like '#' before spliting, try this
String[] seperated = line.replace('|','#').split("#");