in reply to Re^2: split function for | and \| delimiter
in thread split function for | and \| delimiter
use warnings; use strict; my $str='9454958459|54|AWC XXX|B\|T\|MIN\|MAX\|Air Tree Reg 250 Min|An +y(AT)|455|9966004325|'; my @arr=split /(?<!\\)\|/, $str; print "$_ \n" foreach(@arr); __END__ 9454958459 54 AWC XXX B\|T\|MIN\|MAX\|Air Tree Reg 250 Min Any(AT) 455 9966004325
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: split function for | and \| delimiter
by darklord_999 (Acolyte) on May 25, 2012 at 19:30 UTC |