Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Quoted Text rule for Parse::RecDescent?

by suaveant (Parson)
on Aug 26, 2005 at 18:10 UTC ( #486965=note: print w/ replies, xml ) Need Help??


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?
Re^3: Quoted Text rule for Parse::RecDescent?
by TheDamian (Priest) 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 }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://486965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2015-07-02 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls