Most regular expression language operators are unescaped single characters. The escape character \ (a single backslash) signals to the regular expression parser that the character following the backslash is not an operator.
Example: The parser treats an asterisk (*) as a repeating quantifier and a backslash followed by an asterisk (\*) as the Unicode character 002A.
Note: The character escapes listed are recognized both in regular expressions and in replacement patterns.
Regular Expression | Description |
ordinary characters | Characters other than . $ ^ { [ ( | ) * + ? \ match themselves. |
\a | Matches a bell (alarm) \u0007. |
\b | Denotes a word boundary (beginning or end of a word), except in a [ ] character class, where it matches a backspace. |
\t | Matches a tab \u0009. |
\r | Matches a carriage return \u000D. |
\v | Matches a vertical tab \u000B. |
\f | Matches a form feed \u000C. |
\n | Matches a new line \u000A. |
\e | Matches an escape \u001B. |
\040 | Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. For example, the character \040represents a space. |
\x20 | Matches an ASCII character using hexadecimal representation (exactly two digits). |
\cC | Matches an ASCII control character. For example, \cCis control-C. |
Note: The escaped character \b is a special case. In a regular expression, \b denotes a word boundary (between \w and \W characters) except within a [] character class, where \b refers to the backspace character. In a replacement pattern, \b always denotes a backspace.
For further help or feedback, please see the Laserfiche Support Site. | © 2009 Laserfiche. All Rights Reserved. |