|more useful options|
Re: Adding href where needed.by moen (Hermit)
|on Oct 31, 2000 at 05:29 UTC||Need Help??|
You should maybe look into URI::Heuristic for completing your links. Something like this:
If the user input is www.perlmonks.com or http://www.perlmonks.com it will give you the proper URI. In this case with html code:
using www.perlmonks.com as input.
It also does ftp and others.
ok..it's a bit off what you really asked for but i just noted this module at CPAN and liked it ;o)
This works just fine, also with resolving the url to an uri. You may also drag out the text by enclosing the last .* and drag out the value of $2.
The regex should work on it's own without using the module also, me thinks.