![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Parsing/regex help requiredby Fletch (Bishop) |
on Sep 27, 2021 at 13:21 UTC ( #11137037=note: print w/replies, xml ) | Need Help?? |
First be sure if you have HTML you need to be using an HTML parser, not regex, to extract your lines. Presumably this is something where the numbering's not generated by say an <ol> and you've actually pulled the text of whatever nodes out (using say HTML::TreeBuilder or Mojo::DOM) then you could use something maybe like.
Edit: Tweaked.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|