I need a javascript code that split a string like below:
Input string: "a=>aa| b=>b||b | c=>cc"
Output:
a=>aa
b=>b||b
c=>cc
I'd written different codes like:
split(/ \ | /)
or
split(/ \| (?! \ |) /)
but didn't work.
please help me...
I really need it fast.