Regular Expressions (Regex) are a special syntax for identifying one string of characters and/or numbers inside of a larger string. The special syntax for regular expressions is as follows:
CharDescription
^Start of Input
a,bMatches exact character
.Matches any one character
\dMatches any digit (\D not)
\wMatches any letter (\W not)
\sMatches whitespace char (\S not)
\bWord Boundary (\B not)
\Matches next exact char (escape)
[...]Matches a character from a set
[^...]Matches a character not in set
(...)Creates a "capture group"
(?:...)Non-"capture" group
\1, \2Matches a prev "capture group"
(?=...)Look ahead (?! not)
(?<...)Look behind (?! not)
*Matches prev 0 or more times
+Matches prev 1 or more times
{n}Matches prev n times
{x,y}Matches prev x-y times