|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
replacing clickable web and email addressesby markolus (Initiate) |
| on Mar 22, 2002 at 08:16 UTC ( [id://153547]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.markolus has asked for the wisdom of the Perl Monks concerning the following question: Hi there -- I am currently involved in trying to do two things: 1) take input text (in the form of a string parameter value to a script) of potentially email and web addresses and replace them with clickable alternatives. i.e. To to do the above I am working using both Email::Find and URI::Find although I have been using the s!(www.[^\s]+)!<a href="/cgi-bin/script.pl?u=$1">$1</a>!gi piece of code up to now for web addresses. ----.... i.e. converting the clickable links as shown above back to their text original. Do I need a wierd and wonderful regex and substitition piece of code or is there a module that will make my life easy? I need to be able to reproduce my html link format and not just have a simple target=_blank href? Any ideas?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||