Re: Finding the text a rule matched

[email protected] (Terrence Brannon)
Newsgroups perl.recdescent
Message-ID <[email protected]>
On Sunday, October 28, 2001, at 02:32 AM, Marcel Grunauer wrote:

> I wanted to know, after matching a rule, what text the rule matched.
> So I used two variables to remember what the remaining text and
> offset were before and after the rule and just determined the
> difference.


Parse::RecDescent::Consumer does this. You can get it from CPAN. I told 
Damian about it a long time ago, and he thought it was a good idea. I 
don't know if he ever rolled it into core or not.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.