Matches either colour or color, because the ? makes the letter u optional.
![regular expression not include word regular expression not include word](https://imgs.developpaper.com/imgs/3601381261-5ce58221d8800_articlex.jpg)
For example, the following regular expression: Matches punctuation characters and symbols: Matches visible characters only-that is, any characters except spaces, control characters, and so on. Note: This character class must be surrounded with another set of square brackets when you use it in a regular expression, for example: ]. Matches alphanumeric characters (letters or digits): Matches any character that’s not a letter from a to f Matches any character not in the set of characters. Note: Regular expressions in Content Compliance policies are case sensitive. Separate the first and last character in a set with a dash. Matches any character from a set of characters. matches a literal period, rather than any character (dot character) Indicates that the next character is a literal rather than a special character. (pipe) Indicates alternation-that is, an “or.” For example: Together, this regular expression matches all lines that do not contain the specific word '42'. (dot) Matches any single character, except a new line. For example, a content rule with a location Subject line and the following regular expression:Ĭaptures any email message that has a subject line ending with the letters xyz (dollar) Matches the end of the line or string of text that the regular expression is searching. (period) is a metacharacter (it sometimes has a special meaning).
![regular expression not include word regular expression not include word](https://www.cheatsheet.com/wp-content/uploads/2020/10/Nathan-Apodaca.jpg)
The caret must immediately follow the or else it stands for just itself. For example, a content rule with a location Subject line and the following regular expression:Ĭaptures any email message that has a subject line beginning with the letters abc To match any character except a list of excluded characters, put the excluded charaters between and.
![regular expression not include word regular expression not include word](https://blog.facialix.com/wp-content/uploads/2021/10/3617490_a7c8_3.jpg)
(caret) Matches the start of the line or string of text that the regular expression is searching. These characters are categorized as follows: Characters The following table describes some of the most common special characters for use in regular expressions. See also Configure Content Compliance settings For additional instructions and guidelines, see also Guidelines for Using Regular Expressions and Examples of Regular Expressions.