Application icon

Regular Expression Metacharacters

Note that in addition to the standard metacharacters described in the table, Yate supports \V# and \<named variable> sequences via a prescan to insert the contents of a Variable or named variable. The inserted contents can be treated as literal characters or can be escaped to ensure that they do not interfere with any of the standard sequences.


CharacterDescription
\aMatch a BELL, \u0007
\AMatch at the beginning of the input. Differs from ^ in that \A will not match after a new line within the input.
\bMatch if the current position is a word boundary. Boundaries occur at the transitions between word (\w) and non-word (\W) characters, with combining marks ignored.
\BMatch if the current position is not a word boundary.
\cXMatch a control-X character.
\dMatch any character with the Unicode General Category of Nd (Number, Decimal Digit.)
\DMatch any character that is not a decimal digit.
\eMatch an ESCAPE, \u001B.
\ETerminates a \Q ... \E quoted sequence.
\fMatch a FORM FEED, \u000C.
\GMatch if the current position is at the end of the previous match.
\nMatch a LINE FEED, \u000A.
\N{UNICODE CHARACTER NAME}Match the named character.
\p{UNICODE PROPERTY NAME}Match any character with the specified Unicode Property.
\P{UNICODE PROPERTY NAME}Match any character not having the specified Unicode Property.
\QQuotes all following characters until \E.
\rMatch a CARRIAGE RETURN, \u000D.
\sMatch a white space character. White space is defined as [\t\n\f\r\p{Z}].
\SMatch a non-white space character.
\tMatch a HORIZONTAL TABULATION, \u0009.
\uhhhhMatch the character with the hex value hhhh.
\UhhhhhhhhMatch the character with the hex value hhhhhhhh. Exactly eight hex digits must be provided, even though the largest Unicode code point is \U0010ffff.
\wMatch a word character. Word characters are [\p{Alphabetic}\p{Mark}\p{Decimal_Number}\p{Connector_Punctuation}\u200c\u200d].
\WMatch a non-word character.
\x{hhhh}Match the character with hex value hhhh. From one to six hex digits may be supplied.
\xhhMatch the character with two digit hex value hh
\XMatch a Grapheme Cluster.
\ZMatch if the current position is at the end of input, but before the final line terminator, if one exists.
\zMatch if the current position is at the end of input.
\nBack Reference. Match whatever the nth capturing group matched. n must be a number ≥ 1 and ≤ total number of capture groups in the pattern.
\0oooMatch an Octal character.  'ooo' is from one to three octal digits.  0377 is the largest allowed Octal character.  The leading zero is required; it distinguishes Octal constants from back references.
[pattern]Match any one character from the pattern. The pattern can contain ranges. [a-zA-Z0-9] implies all letters and digits.
[^pattern]Match any one character not in the pattern. The pattern can contain ranges. [^a-zA-Z0-9] implies any character except letters and digits.
.Match any character.
^Match at the beginning of a line.
$Match at the end of a line.
\Quotes the following character. Characters that must be quoted to be treated as literals are: * ? + [ ( ) { } ^ $ | \ .



Regular Expression Operators

Regular Expression Replace Template Format

Regular Expression Flag Options