Home > Archive > PERL Beginners > March 2004 > Parsing the hyperlink?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Parsing the hyperlink?
|
|
|
| I'm running my own version of bulletinboard and I have a little problem
with hyperlinks. I'd like to make them really work. So if posted message
includes http://blaablaablaa it would be a hyeprlink when reader opens
the message. Messages are stored in .html files so it's quite easy to
add <a href="http://blaablaablaa">http://blaablaablaa</a> to original
file by my cgi-parser.
I know it's something like:
if $message =~ /http:\/\//
But what else?
| |
|
|
|
| Thanks.
I think I'll use regex this time, 'cause it fits the purpose good
enough. But it's really nice thing to know the module for the future
versions of my script.
|
|
|
|
|