Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
No such thing as a small change
 
PerlMonks  

(Ovid) Re(2): Death to Dot Star!

by Ovid (Cardinal)
on Apr 03, 2001 at 06:12 UTC ( [id://69214]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Death to Dot Star!
in thread Death to Dot Star!

/"([^"]*)\?"/ almost works, but often, quoted strings allow escapes:
my $myvar = '"Did John say \"go home\" to Suzie?"'; $myvar =~ /"([^"]*)\?"/;
The above code will put " to Suzie" (without the quotes) in $1.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re(2): Death to Dot Star!
by Anonymous Monk on Apr 12, 2001 at 21:34 UTC
    So does yours. If you want to allow \" inside strings, you need to use something like /"((?:\\"|[^"])*)\?"/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69214]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.