Don't ask to ask, just ask | |
PerlMonks |
Re: regex match in list contextby flounder99 (Friar) |
on Oct 02, 2003 at 19:07 UTC ( [id://296033]=note: print w/replies, xml ) | Need Help?? |
What happened is that once it failed on "" it just skipped the first quote and moved on to the next character which was the closing quote so it matched on "," and continued from there. There are several ways to do what you want. Some are simple if you don't have to worry about embeded escaped quotes some thing like
Would work. If you have embeded escaped quotes you can use this: like this There are several modules that you can use like Text::Balanced and Regexp::Common -- flounder
In Section
Seekers of Perl Wisdom
|
|