in reply to Re: Quoted Text rule for Parse::RecDescent?
in thread Quoted Text rule for Parse::RecDescent?

Ahh... I saw that, but I had some trouble figuring out how to limit it to ' and ", thanks.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: Quoted Text rule for Parse::RecDescent?

Replies are listed 'Best First'.
Re^3: Quoted Text rule for Parse::RecDescent?
by TheDamian (Vicar) on Aug 27, 2005 at 00:55 UTC
    Presumably now you've worked out that, to restrict it to quoted texts, you need something like:
    string: <perl_quotelike> { my ($marker, $quote, $text) = @{$item[0]}[0..2]; !marker && $quote =~ /['"]/ ? $text : undef }