in reply to Re^3: How to improve regex for parsing equals delimited data
in thread How to improve regex for parsing equals delimited data
my @fld = map /=s*(.+)/, /\b +\b/g; print join( ',', @fld ), "\n";
Update: Thanks Lotus1, it should be:
my @fld = map /=\s*(.+)/, split /\b +\b/; print join( ',', @fld ), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to improve regex for parsing equals delimited data
by Lotus1 (Vicar) on May 11, 2012 at 14:50 UTC |