Supported Metacharacters
Table 56 through Table 60 list the metacharacters and metasequences supported by vi. For expanded definitions of each metacharacter, see "Regex Metacharacters, Modes, and Constructs.â
Table 1-56. vi character representation
Sequence | Meaning |
---|---|
Vim only | Â |
| Backspace, |
| Escape character, |
| Newline, |
| Carriage return, |
| Horizontal tab, |
Table 1-57. vi character classes and class-like constructs
Class | Meaning |
---|---|
| Any character listed, or contained within a listed range. |
| Any character that is not listed, or contained within a listed range. |
| POSIX-style character class (valid only within a character class). |
| Any character except newline (unless |
Vim only | Â |
| Word character, |
| Nonword character, |
| Letter character, |
| Nonletter character, |
| Head of word character, |
| Not the head of a word character, |
| Digit character, |
| Nondigit character, |
| Whitespace character, |
| Nonwhitespace character, |
| Hex digit, |
| Nonhex digit, |
| Octal digit, |
| Nonoctal digit, |
| Lowercase letter, |
| Nonlowercase letter, |
| Uppercase letter, |
| Nonuppercase letter, |
| Identifier character defined by |
| Any nondigit identifier character. |
| Keyword character defined by |
| Any nondigit keyword character. |
| Filename character defined by |
Get Regular Expression Pocket Reference, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.