Note the use of ?: tells perl not to remember the inner pattern, which makes it a bit more efficient.$_ = '"Hello \" world!" I am Roger'; ($str) = /("(?:\\"|.)*?")/x; print "$str\n";
In reply to Re: Pattern Matching Question
by Roger
in thread Pattern Matching Question
by Joy Conner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |