(2)Matching Whitespace or nonwhitespace character: /s, /S
Metacharacter |
Description |
---|---|
/s |
Any whitespace character (same as [/f/n/r/t/v]) |
/S |
Any nonwhitespace character (same as [^/f/n/r/t/v]) |
Note:[/b], the backspace metacharacter, is not included in /s or excluded by /S.
(3)Matching Digits
Metacharacter |
Description |
---|---|
/d |
Any digit (same as [0-9]) |
/D |
Any nondigit (same as [^0-9]) |
(4)Matching Alphanumeric characters
Metacharacter |
Description |
---|---|
/w |
Any alphanumeric character in upper- or lower-case and underscore (same as [a-zA-Z0-9_]) |
/W |
Any nonalphanumeric or underscore character (same as [^a-zA-Z0-9_]) |
Metacharacter |
Description |
---|---|
[/b] |
Backspace |
/f |
Form feed |
/n |
Line feed |
/r |
Carriage return |
/t |
Tab |
/v |
Vertical tab |