Perl: the Markov chain saw | |
PerlMonks |
Re: Non-greedy regex behaves greedilyby tphyahoo (Vicar) |
on Nov 10, 2004 at 19:20 UTC ( [id://406758]=note: print w/replies, xml ) | Need Help?? |
Yes, the left hand side (except for the last closing bracket)
is finding out to and then continuing out till it hits the next closing bracket. Problem is + finds AT LEAST one character. You want the star * here: * finds 0 or more characters. That should solve it! :)
In Section
Seekers of Perl Wisdom
|
|