
davorg
Thaumaturge
/ Moderator
Jan 14, 2004, 3:40 AM
Post #3 of 4
(8988 views)
|
Re: [Saya] Finding and Replacing URL in a text
[In reply to]
|
Can't Post
|
|
Recall is right that you don't want to be parsing HTML using regular expressions. You'll be far better off using a real HTML parser, like HTML::Parser or one of its subclasses. Not sure that I'd use HTML::LinkExtor for this task tho' as you don't want to extract the links, you want to convert them in place. I'd be far more likely to use HTML::TreeBuilder for this. -- Dave Cross, Perl Hacker, Trainer and Writer http://www.dave.org.uk/ Get more help at Perl Monks
|