in reply to Re: How to improve regex for parsing equals delimited data
in thread How to improve regex for parsing equals delimited data
my @fld = split /\s*FIELD\w = /; shift @fld; # Zap empty first field print join(",",@fld ),"\n";
my @fld = /FIELD\w\s*=\s*(\S+)/g; print join( ',', @fld ), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to improve regex for parsing equals delimited data
by sauoq (Abbot) on May 11, 2012 at 03:51 UTC | |
by jwkrahn (Abbot) on May 11, 2012 at 05:43 UTC | |
by Lotus1 (Vicar) on May 11, 2012 at 14:50 UTC |