kelan has asked for the wisdom of the Perl Monks concerning the following question:
Is there perhaps a CPAN module or some other technique to get a report of how a regex is trying to match as it matches? Maybe something like:
I'm thinking along the lines of what you get from Parse::RecDescent with $RD_TRACE set.Trying to match atom '\d+'... matched with '83'. Trying to match atom 'text'... failed at position 20, next character i +s 'h'. etc..
kelan
Perl6 Grammar Student
update (broquaint): s{<(/)?pre>}{<${1}code>}g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Watching a regex match
by Enlil (Parson) on Mar 17, 2003 at 16:15 UTC | |
by kelan (Deacon) on Mar 17, 2003 at 16:19 UTC | |
|
Re: Watching a regex match
by larsen (Parson) on Mar 17, 2003 at 16:16 UTC | |
|
Re: Watching a regex match
by meetraz (Hermit) on Mar 17, 2003 at 16:53 UTC | |
by wazoox (Prior) on Apr 21, 2005 at 11:54 UTC |