|
|
|
What is the PHP analog to the next perl expression:
s/(http:\/\/.*?) /<a href=$1> $1 <\/a>/g;
$msg=eregi_replace("(http|https|ftp)://([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)","<a
href=\"\\1://\\2\" target=\"_blank\">\\1://\\2</a>", $msg);
|
|
| Show Source with Line Numbers Categories : PHP, Regexps, Filesystem | | | Avoiding or Detecting high bit characters in a string. Useful when you want to create a valid RSS feed Categories : PHP, Strings, Unicode, Regexps, Rich Site Summary (RSS) | | | Match words that are entered into a <textarea> in any layout orientation (horizontal, vertical, diagonal). Categories : PHP, Regexps | | | ereg -- Regular expression match Categories : PHP, PHP Functions, Regexps | | | a PHP Function to Get only the filename (remove the extension) using regular expressions. Categories : PHP, Regexps, Beginner Guides | | | BBCode Formatting String Categories : PHP, HTML, Regexps, Arrays | | | 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 | | | I need a trim function/regexp that will trim all " " from the ends of a string. Categories : Regexps, PHP, Strings | | | This script is a contact form between users of a
website (kinda like the PM function on the forums)
Categories : PHP, Databases, MySQL, Regexps | | | 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 | | | email validator check checker email e-mail email address Categories : PHP, Email, Regexps | | | Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP Categories : PHP, HTTP, Regexps | | | Checking for valid (or lack thereof) input. Categories : PHP, Perl | | | Check for functional file links (broken Files)
Categories : PHP, Data Validation, FTP, Regexps, Arrays | |
|
|
|