in reply to regex for regex?
The mantra "Only Perl can parse Perl" applies here. Regexen can be hidden in so many ways and things that look like regexs can be present in so many places that trying to find all regexes in a arbitary Perl script would be a very large problem. A trivial search for =~ and =! will find some (and may find some false hits). A search for m/ and s/ may find some more. A search for [\s=][ms][-`~!@#$%^&*(){}[\]:";',.<>/?\\|] may find a few more. But any simplistic search will be unreliable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex for regex?
by saintmike (Vicar) on Jun 26, 2006 at 22:51 UTC | |
by GrandFather (Saint) on Jun 26, 2006 at 23:13 UTC | |
by spiritway (Vicar) on Jun 27, 2006 at 05:12 UTC |