/"([^"]*)\?"/ 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.


In reply to (Ovid) Re(2): Death to Dot Star! by Ovid
in thread Death to Dot Star! by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":