in reply to Re: Death to Dot Star!
in thread Death to Dot Star!
/"([^"]*)\?"/ almost works, but often, quoted strings allow escapes:
The above code will put " to Suzie" (without the quotes) in $1.my $myvar = '"Did John say \"go home\" to Suzie?"'; $myvar =~ /"([^"]*)\?"/;
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 13, 2001 at 01:34 UTC |
In Section
Meditations