help for writting a regular expression in javascript
Posted
by Majesty
on Stack Overflow
See other posts from Stack Overflow
or by Majesty
Published on 2010-05-08T10:36:43Z
Indexed on
2010/05/08
10:48 UTC
Read the original article
Hit count: 230
JavaScript
Hi guys...
I want to write a javascrpit code with .Split() that split a string with structure described below:
The input:
W1...Wn=>S1...||...Sm||Sj...Sk|Y1...Yn=>D1...Di||Dm...Dn|...
The Output:
W1...Wn=>S1...||...Sm||Sj...Sk
Y1...Yn=>D1...Di||Dm...Dn
...
I've seen the question that split this string: a=>aa|b=>b||b|c=>cc . but my question is general case of that question.
please help me...
Thanks...
© Stack Overflow or respective owner