Regular Expression 有效的电话号码

^\+?\d{1,3}?[- .]?\(?(?:\d{2,3})\)?[- .]?\d\d\d[- .]?\d\d\d\d$

Regular Expression 字清洁

<(?!/?(a|b|img|dd|dl|dt|p|ul|ol|li|table|td|tr|html|body|head|title))\s*[^>]*>\s*

Regular Expression Dreamweaver查找A-Z文本正则表达式

</?[A-Za-z]+[^>]*>[A-Za-z]+</?[A-Za-z]+[^>]*>

Finds <tag>Word</tag>


</?[A-Za-z]+[^>]*>[A-Za-z/ ]+</?[A-Za-z]+[^>]*>

Finds <tag>Words with spaces</tag>

OLD AND BUSTED:(</?[A-Za-z]+[^>]*>)([.:_?/=A-Za-z/ ]+</?)([A-Za-z]+[^>]*>)

(<[^>]+>)((?:[a-z].*?[a-z]+))(<[^>]+>)

Finds <tag>Words with spaces, periods, colons, ?marks and = signs</tag> 
They are grouped as $1, $2, $3

Regular Expression 用mailto链接替换纯文本电子邮件地址

E-mail: (.+?)\n
E-mail: <a href="$1">$1</a>\n

Regular Expression 使用ISAPI Rewrite或Equivalent拒绝/排除服务器上的SVN文件夹访问。

# Deny access to Subversion working copy administrative
# directories (.svn) and their contents
RewriteRule .*/\.svn\b.* . [F,I,O]

Regular Expression 正则表达式url解析器

/^((http[s]?|ftp):\/)?\/?([^:\/\s]+)(:([^\/]*))?((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(\?([^#]*))?(#(.*))?$/gi

schema = 2,
domain = 3,
port = 5,
path = 6,
file = 8,
querystring = 9,
hash = 12

Regular Expression 正则表达式:不匹配模式

^(?:(?!regexp).)*$

Regular Expression RegEx匹配整句。

$subject = "Check out the newest #WordPress premium theme marketplace";

$pattern = "/Check out the newest #WordPress premium theme marketplace http://themelit.com/$";
		
if ( preg_match_all( $pattern, $subject, $matches ) )				
    $msg = array( "code" => "success", "message" => __("Thanks for tweeting!" ) );
else
    $msg = array( "code" => "error", "message" => __("You haven't tweeted anything yet." ) );

Regular Expression 正则表达式清理所有CSS属性列表

\{((\s*?.*?)*?)\}

Regular Expression RegExp用于将url(asdf.bc)中的css-urls替换为url('images / asdf.bc')

find:     url\(([a-zA-Z\.]+)\)
replace:  url('images/$1')