I know this is a really simple PERL question, but I can't find the answer at google or here. How can I take a string of text, look for instances of www and convert that text into a clickable link?
For example, The quick brown fox jumps to www.cnn.com each day at noon.
I'd like to see
For example, The quick brown fox jumps to <a href=www.cnn.com>www.cnn.com</a> each day at noon.
Here's the kicker... if the link has already been made into a clickable link, the routine should not do anything... so if a user enters a field into the database with the A HREF tag, it should remain the same way as the user entered it....
For example, The quick brown fox <a href=www.cnn.com>jumps to cnn</a> each day at noon.... should remain the same.
Thanks guys (esp the girls who always seem to bail me out)
Wes
For example, The quick brown fox jumps to www.cnn.com each day at noon.
I'd like to see
For example, The quick brown fox jumps to <a href=www.cnn.com>www.cnn.com</a> each day at noon.
Here's the kicker... if the link has already been made into a clickable link, the routine should not do anything... so if a user enters a field into the database with the A HREF tag, it should remain the same way as the user entered it....
For example, The quick brown fox <a href=www.cnn.com>jumps to cnn</a> each day at noon.... should remain the same.
Thanks guys (esp the girls who always seem to bail me out)
Wes

