use split() for splitting a string
- by Hamed
Hi again...
Guys I'd asked 2 questions before and I'd said that I want to split a string like below:
Input string:
a=aa|b=b||b|c=cc
and the output:
a=aa
b=b||b
c=cc
some guys answer my question but they use .Match():
var matches = "a=aa|b=b||b|c=cc".match(/(?:[^|]|\|\|)+/g)
but I need to use the .split() method and store the outputs in an array.
please help me guys... It's so critical...
Thanks...