您的浏览器不支持JavaScript或者JavaScript的运行被您禁止了。

Regular Expression

Summary of Metacharacters in Regular Expression
MetacharacterDescription
/Begins and ends the regular expression
.Matches any single character except the newline
element*Matches element zero or more times
element+Matches element one or more times
element?Matches element zero or one time
[characters]Matches a character out of those contained within the brackets
[^characters]Matches a single character that is not contained within the brackets
(regex)Treats the regex as a group for counting or a following *, +, or ?
left|rightMatches either left or right
[l-r]Matches a range of characters between l and r
^Requires match to be at the string's start
$Requires match to be at the string's end
\bMatches a word boundary
\BMatches where there is not a word boundary
\dMatches a single digit
\DMatches a single nondigit
\nMatches a newline character
\sMatches a whitespace character
\SMatches a nonwhitespace character
\tMatches a tab character
\wMatches a word character (a-z, A-Z, 0-9, and _)
\WMatches a nonword character (anything but a-z, A-Z, 0-9, and _)
\xx (useful if x is a metacharacter, but you really want x)
{n}Matches exactly n times
{n,}Matches n times or more
{min,max}Matches at least min and at most max times
Table Tag in HTML