I have the following string "ABC"
and "AAA||BBB"
I am trying to split
it using the characters "||"
but the split
method is taking this as a regex expression, returning an array of characters instead of {"ABC"}
and {"AAA", "BBB"}
I have tried scaping the bar with a back slash, but that didn't work.
How can I make the split
method to take "||"
as a String and not as a regex?
Thanks