^Matches the beginning of the string or line.
$Matches the end of the string or line.
\bMatches the word character or position at the end of a word.
\BMatches a word character or position that is not at the end of a word.
iMakes the expression case insensitive.
gEnsures that the expression does not stop on the first match.
mIf not enabled, line start and end equals the beginning and end of the entire string. It doesn't work for each row individually.
()Groups an expression.
\1References a grouped expression.
(?:)Makes a grouping that cannot be referenced.
[abc]Matches any character in the set.
[^abc]Matches any character not in the set.
[a-z]Matches all characters between two characters, including themselves.
.Matches any character except line breaks.
\wMatches any alphanumeric character. Including the underline.
\WMatches any non-alphanumeric character.
\dMatches any numeric character.
\DMatches any non-numeric character.
\sMatches any whitespace character.
\SMatches any non-whitespace character.
(?=)(?!)(?<=)(?<!)+Expression matches one or more.
*Expression matches zero or more.
{1,3}Expression matches within specified ranges.
?Makes the expression optional.
|Or it works like. It waits for one of the expressions it reserved to match.