htmanning has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the following to automatically take a domain name, and turn it into a link:
But what if I have something like$text =~ s!([^\s]+\.com)!<a href="http://www.$1" target="_new">$1</a>! +gi;
How do I parse that entire link and make it a hyperlink?www.test.com/thisandthat/this.html
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Creating links
by Corion (Patriarch) on Mar 17, 2010 at 18:49 UTC | |
Re: Creating links
by Dru (Hermit) on Mar 17, 2010 at 19:38 UTC | |
Re: Creating links
by Cody Fendant (Hermit) on Mar 18, 2010 at 04:51 UTC | |
Re: Creating links
by 7stud (Deacon) on Mar 17, 2010 at 19:41 UTC |
Back to
Seekers of Perl Wisdom