Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Regular Expression Problemby elusion (Curate) |
on Aug 29, 2002 at 02:46 UTC ( [id://193645]=note: print w/replies, xml ) | Need Help?? |
You should probably use a module for this, but I'll answer anyway (I'm a re-invent the wheel person myself). You needn't escape the <>'s. Also, there can be attributes between the "a" and the "href", so you need to use a ".". I've updated the regex and hopefully made it a little cleaner too.
elusion : http://matt.diephouse.com
In Section
Seekers of Perl Wisdom
|
|