http://qs1969.pair.com?node_id=69214


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.