Thanks for replying. I tried your idea but it didn't work. I got the output like
$str="9454958459|54|AWC XXX|B\|T\|MIN\|MAX\|Air Tree Reg 250 Min|Any(A +T)|455|9966004325|"; @arr=split /(?<!\\)\|/, $str; print "$_ \n" foreach(@arr);
and the output is
9454958459
54
AWC XXX
B
T
MIN
MAX
Air Tree Reg 250 Min
455
9966004325
In reply to Re^2: split function for | and \| delimiter
by darklord_999
in thread split function for | and \| delimiter
by darklord_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |