
Chris Winfield-Blum - 2008-01-08 01:04:10
The following outlines how to find all URL links (email or www)
At this stage all it does is 1 find URL (email or www) and then replaces them with plain text.
enter the following into the file with all the other preg_replaces
$doc_buffer = preg_replace("/<a href=\"(.*?)\"(.*?)>(.*?)<\/a>/i", "\\3 [ \\1 ]", $doc_buffer);
See how that goes. I am also working on converting the URL into a RTF Hyperlink but ill get to that later