Forum Moderators: coopster

Message Too Old, No Replies

Regex and URLS

finding urls, in text

         

cuce

5:10 pm on Jul 21, 2006 (gmt 0)

10+ Year Member



What I am looking to do is parse a string, looking for certain words, and if they are in a url, then ignore them, and if they are not a url, to turn them into one.

example:

if the word is test...

<a href="index.php">test</a> //This would get ignored.

test // This would get turned into a link, link <a href="glossary.php?term=test">test</a>

jatar_k

2:06 am on Jul 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could always adapt a highlight word script [google.com]