*
|
Star. Zero or more instances
|
*orm searches for: form or inform ,
or frm
|
.
|
Dot. Any one character
|
fo.m searches for form or foam
|
+
|
Plus. One Any one character
|
fo.m searches for form or foam
|
?
|
Restrict the search to the next specified
character
|
fo.+?m searches for fo followed
by one or more characters (any) followed by m
|
\d
|
A digit
|
\d+ Searches for a number
with one or more digits
|
{n}
|
Specific number of instances
|
so{1}n searches for son but not soon
|
{n,m}
|
Range of instances
|
so{1-2}n searches for son and soon but
not sooon
|
{n,}
|
Range n to m within
braces.
|
so{1-2}n searches for son and soon but
not sooon
|
^
|
Caret. Start of a line
|
|
$
|
End of line
|
|
[ab]
|
Any one of the bracketed characters
|
f[ao]rm searches for farm or form
|
[^ab]
|
Any character except the bracketed characters
|
f[^ao]rm searches for f followed
by any character except the a and o followed
by rm
|
[a-f]
|
Any character in the specified range
|
f[b-e]rm searches for farm or form but
not, for example, ferm
|