This is a good one i found on the list :
$tmsg = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])",
"<a href=\"\\1://\\2\\3\" target=\"_blank\">\\1://\\2\\3</a>", $tmsg);
It will match http://, news://, https://, ftp://, etc - any protocol that's
indicated. It also will terminate on most punctuation - there are a few
special cases to match urls that might seem broken, but generally it'll
terminate on an alphanumeric. It works quite well for me.
by Charles Hagenbuch, <chagenbu@wso.williams.edu>
Clever Email Validation Function - E-Mail validation function with an eregi expression and socket connection. Categories : Email , PHP , Regexps email validator check checker email e-mail email address Categories : PHP , Email , Regexps validateEmail 2.0 - upgraded version of the old validateEmail function used to validate email
addresses via SMTP and regex. Categories : Email , Regexps , PHP EAvalidator - This class can be used to validate an e-mail address by checking its domain. Categories : PHP , PHP Classes , Email , Regexps E-mail Verification Categories : PHP , Regexps , Email send_mail function to defeat Header Injection Hacking/Spamming Categories : PHP , Email , Form Processing , Security PHP based Contact email form with multiple recipients, text file based, supports departments. Categories : PHP , Email , Beginner Guides , Filesystem Encoding data using PGP via PHP's proc_* functions Categories : Cryptography , Security , Email , PHP , PGP HTTP Basic Authentication via POP3. Categories : Authentication , HTTP , Email , PHP Parse html (title :: meta) Categories : PHP , HTML and PHP , Regexps Protect your mailto: email addresses from bots Categories : PHP , Email , Java Script php table decoder used to convert an html table to individual tokens
through regular expressions Categories : PHP , Regexps , HTML and PHP Simple way to replace a variable value in a .conf (.ini) file using a
webbrowser - the first stage of a complete universal configuration editor Categories : PHP , Regexps , Code Editors , Filesystem columned txt file to array()? Categories : Arrays , Strings , Regexps , PHP email new items in db Categories : PHP , Email , Databases , MySQL , Beginner Guides
Anonymouns Coward wrote : 173
Wow, this works great! Would be nice if it could do e-mail
addresses as well and make them mailto: links.
Thanks!