![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Regular expressionsby mce (Curate) |
on Oct 30, 2002 at 12:28 UTC ( #209038=note: print w/replies, xml ) | Need Help?? |
Hi, You can of course take an HTML::Parser to do the work for you. This is the best way. But if you really want your own regexp, I suggest to use 2 parsings, just to maintain readability. I am sure a real regexp expert can do it in one line, but here is my try. It is up to you to store then in arrays, but at least it gives you a hint. This is really quick and dirty...
updateIt all depends on how much flexibity you want anyway, you can easily play around with the seperators, etc ...
In Section
Seekers of Perl Wisdom
|
|