On May 7, Clinton said:

>I'm tring to extract some values delimited by quotes
>I can extract the first set using "([^"]*) but not the second set using
>"([^"]*),"([^"]*). Could I have a clue please?

The problem is that you are not matching the " after the non-quotes.

To fix that, match it:

  $str =~ /"([^"]*)","([^"]*)"/;

If you download YAPE::Regex 3.00 and YAPE::Regex::Explain 3.01 from CPAN
or my web site (click on the YAPE link in "Projects"), then you can use
the regex explainer program (called 'explain') to get an explanation of
your regex, which should help you see why it's failing.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734

Reply via email to