Don't ask to ask, just ask | |
PerlMonks |
Re: Matching optionally quoted stringby bl0rf (Pilgrim) |
on Dec 14, 2003 at 21:45 UTC ( [id://314688]=note: print w/replies, xml ) | Need Help?? |
Dear monks, so far I have seen many monks doing unncecessary work. Is lazyness not the first virtue of the Perl programmer? I always use: $foo =~ m!href="([^"]*)!i; After all, what you want to match is just non-" characters...
In Section
Seekers of Perl Wisdom
|
|