.
- matches any character\d
- matches digits 0-9\D
- matches any character but 0-9\s
- matches whitespace characters\S
- matches any character but whitespace\w
- matches A-Z, a-z, 0-9, and _\W
- matches any character but A-Z, a-z, 0-9, and _\t
- matches a tab character\n
- matches a newline character- This can be used in the template to print a newline
[ab]
- matches any one character within the brackets[^ab]
- matches any character except those in the brackets
a|b
- matches the expression on the right or the expression on the left
^
- matches the beginning of input- Also matches the beginning of the line when 'Multiline' is checked
$
- matches the end of input- Also matches the end of the line before the line break character when 'Multiline' is checked
\b
- matches word boundaries\B
- matches non-word boundaries
(a)
- matches the expression within and remembers the match\n
- matches the nth parenthesized expression, where n is a positive integer- This can be used in the template to print the nth parenthesized expression
(?:a)
- matches the expression within and doesn't remember the match
a*
- matches the expression 0 or more timesa+
- matches the expression 1 or more timesa?
- matches the expression 0 or 1 timesa{n}
- matches the expression n timesa{n,}
- matches the expression n or more timesa{n,m}
- matches the expression n to m times
For details, examples, and advanced concepts, visit this documentation.
Note: a and b in the examples represent any expression