Specifications
in the regexp. A word boundary is any non-word character such as a space, a newline or the
beginning or end of the string.
Characters and abbreviations for sets of characters
MeaningElement
Any character represents itself unless it has a special regexp meaning. Thus c
matches the character c.
c
A character that follows a backslash matches the character itself except where
mentioned below. For example if you wished to match a literal caret at the
beginning of a stringyou would write \^.
\c
This matches the ASCII bell character (BEL, 0x07).\a
This matches the ASCII form feed character (FF, 0x0C).\f
This matches the ASCII line feed character (LF, 0x0A, Unix newline).\n
This matches the ASCII carriage return character (CR, 0x0D).\r
This matches the ASCII horizontal tab character (HT, 0x09).\t
This matches the ASCII vertical tab character (VT, 0x0B).\v
This matches the Unicode character corresponding to the hexadecimal number
hhhh (between 0x0000 and 0xFFFF).
\xhhhh
(i.e. zero ooo) This matches the ASCII/Latin1 character corresponding to the
octal number ooo (between 0 and 0377).
\0ooo
(i.e. period) This matches any character (including newline)..
This matches a digit.\d
This matches a non-digit.\D
This matches a whitespace.\s
This matches a non-whitespace.\S
This matches a word character (letter or number or underscore).\w
This matches a non-word character.\W
This matches the n-th backreference, e.g. \1, \2, etc.\n
Sets of characters
Square brackets are used to match any character in the set of characters contained within the
square brackets. All the character set abbreviations described above can be used within square
brackets. Apart from the character set abbreviations and the following two exceptions no
characters have special meanings in square brackets.
198
Enfocus Switch 10










