Question: I am trying to split a string like: abc|aa||
When I use the regular string.split I am required to provide a regular expression.
I tried to do the following :
 string.split("|")
 string.split("\|")
 string.split("/|")
 string.split("\Q|\E")

Non of them work.....

Does anyone know how to make it work?

Answer: 
using a double backslash is required because the backslash is also a special character. So you need to escape the escape character. i.e. \
\|
`|` is a special character hence you need to escape it using slashes. Try using 

`string.split("\\|")`