http://www.perlmonks.org?node_id=39225


in reply to Adding href where needed.

How about just adding (?:<a href = \")? and (?:<\/a>)? at the begining and end (respectively) of your regexp?

That's the best suggestion I can give with my Perl knowledge.



FouRPlaY
Learning Perl or Going To Die Trying