Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Query about regular expressionby ww (Archbishop) |
on Sep 23, 2015 at 22:12 UTC ( [id://1142840]=note: print w/replies, xml ) | Need Help?? |
If the line you want always begins <li>average_, then match on that (according to your taste, including or excluding the <li>s from your capture) rather than trying to count <li>s. If not, you'll have to use a more complex solution... for which you may wish to read in the regex docs about "positive look ahead" and variations.
In Section
Seekers of Perl Wisdom
|
|