So I just spent some time learning about regular expressions, ha - its like a whole new language inside of php. I can't beleive I never learned about these.
So I found a code to change all [url]http://*[/url] into html links...
$text = ereg_replace("[a-zA-Z]+://([.]?[a-zA-Z0-9_/-])*", "<a href=\"\0\">link</a>", $text);
I am guessing \0 is for the first ( ) group...
This code doesn't work for links that have question marks in them, such as http://example.com/example.php?page=index ... how could I change this script to work for that?
oh and what is [.]? for?