|
|
|
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>
|
|
| 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 | | | E-mail Verification Categories : PHP, Regexps, Email | | | Clever Email Validation Function - E-Mail validation function with an eregi expression and socket connection. Categories : Email, PHP, Regexps | | | PHP Script to find url links in a page Categories : PHP, URLs, Regexps, Arrays | | | Tag content retrieval from websites with preg_match Categories : PHP, Regexps, Arrays, HTML and PHP | | | email new items in db Categories : PHP, Email, Databases, MySQL, Beginner Guides | | | PHP based Contact email form with multiple recipients, text file based, supports departments. Categories : PHP, Email, Beginner Guides, Filesystem | | | This script is a contact form between users of a
website (kinda like the PM function on the forums)
Categories : PHP, Databases, MySQL, Regexps | | | ereg -- Regular expression match Categories : PHP, PHP Functions, Regexps | | | Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email, Network, PHP, PHP Classes | | | Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP Categories : PHP, HTTP, Regexps | | | POP3 Class Categories : PHP Classes, PHP, Email | | | A web-based php3 IMAP email client supporting address books, attachements (downloading and sending), LDAP searching, and much much more. Categories : Email, PHP, LDAP | | | Encoding data using PGP via PHP's proc_* functions Categories : Cryptography, Security, Email, PHP, PGP | |
| | | | 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!
| |
|
|
|