smackdab has asked for the wisdom of the Perl Monks concerning the following question:
$PRE = '\[\s*('; $VALID1 = '[-a-zA-Z0-9_.*\s]'; $PST = ')\s*\]'; while (<DATA>) { print "yep\n" if /$PRE($VALID1+)$PST/; } __DATA__ [TEST \n DATA]\n [ TEST DATA ]\n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing file/regex question
by tadman (Prior) on Oct 23, 2003 at 20:40 UTC | |
by smackdab (Pilgrim) on Oct 23, 2003 at 21:31 UTC | |
|
One more q: on: parsing file/regex question
by smackdab (Pilgrim) on Oct 23, 2003 at 23:25 UTC | |
by graff (Chancellor) on Oct 24, 2003 at 03:35 UTC | |
|
Re: parsing file/regex question
by tcf22 (Priest) on Oct 23, 2003 at 20:49 UTC | |
|
Re: parsing file/regex question
by TomDLux (Vicar) on Oct 23, 2003 at 21:05 UTC | |
by Anonymous Monk on Oct 24, 2003 at 08:36 UTC |