RegExLib.com Regular Expression Cheat Sheet (.NET)
Metacharacters Defined
Metacharacter Examples
^
Start of a string.
^abc
abc, abcdefg, abc123, …
$
End of a string.
abc$
abc, endsinabc, 123abc, …
0
Any character (except \n newline)
a.c
abc, aac, acc, adc, aec, …
|
Alternation.
bill|ted
ted, bill
{…}
Explicit quantifier notation.
ab{2}c
abbc
[…]
Explicit set of characters to