Next: Regexp Backslash, Previous: Regexp Special, Up: Syntax of Regexps [Contents][Index]
Here is a table of the classes you can use in a character alternative, and what they mean:
This matches any ASCII character (codes 0–127).
This matches any letter or digit. (At present, for multibyte characters, it matches anything that has word syntax.)
This matches any letter. (At present, for multibyte characters, it matches anything that has word syntax.)
This matches space and tab only.
This matches any ASCII control character.
This matches ‘0’ through ‘9’. Thus, ‘[-+[:digit:]]’ matches any digit, as well as ‘+’ and ‘-’.
This matches graphic characters—everything except ASCII control characters, space, and the delete character.
This matches any lower-case letter, as determined by the current case
table (see Case Tables). If case-fold-search
is
non-nil
, this also matches any upper-case letter.
This matches any multibyte character (see Text Representations).
This matches any non-ASCII character.
This matches printing characters—everything except ASCII control characters and the delete character.
This matches any punctuation character. (At present, for multibyte characters, it matches anything that has non-word syntax.)
This matches any character that has whitespace syntax (see Syntax Class Table).
This matches any unibyte character (see Text Representations).
This matches any upper-case letter, as determined by the current case
table (see Case Tables). If case-fold-search
is
non-nil
, this also matches any lower-case letter.
This matches any character that has word syntax (see Syntax Class Table).
This matches the hexadecimal digits: ‘0’ through ‘9’, ‘a’ through ‘f’ and ‘A’ through ‘F’.
Next: Regexp Backslash, Previous: Regexp Special, Up: Syntax of Regexps [Contents][Index]