|
|
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, <[email protected]>
|
|
| email validator check checker email e-mail email address Categories : PHP, Email, Regexps | | | 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 | | | EAvalidator - This class can be used to validate an e-mail address by checking its domain. Categories : PHP, PHP Classes, 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 | | | Validator - A PHP class that can can be used for validating Email IDs and Dates Categories : PHP, PHP Classes, Data Validation, Email, Date Time | | | Show Source with Line Numbers Categories : PHP, Regexps, Filesystem | | | YellowPages Content Grabber (PHP5 +) Categories : PHP, PHP Classes, Regexps, Databases, MySQL | | | Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email, Network, PHP, PHP Classes | | | PHP MultiList Mailing List Manager Categories : Email, HTML and PHP, PHP | | | Email attachment code Categories : PHP, Email, Filesystem | | | PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | Calculate Body Mass Index Categories : PHP, Algorithms, Regexps | | | Massreplace Categories : Filesystem, Regexps, Strings, PHP | | | how to check if a string contains a letter from a different language? Categories : PHP, Regexps, Languages | |
| |
| | | | | 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!
| |
|
|