Write an expression in javascript
- by Hero
hi everybody...
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.