Home
Perl
SQL
Services
Links
Resume
Games
Star Wars
Star Trek
Wheel of Time
|
Character Classes
| \d |
[0-9], digit |
| \D |
[^0-9], nondigit |
| \w |
[a-zA-Z_0-9], word character (alphanumeric) |
| \W |
[^a-zA-Z_0-9], nonword character |
| \s |
[ \t\n\r\f], whitespace |
| \S |
[^ \t\n\r\f], nonwhitespace |
Escape Sequences
|
\a
|
Beep
| |
\b
|
Backspace
| |
\c
|
"Control" caracter. \cD = CTRL-D
| |
\e
|
Escape
| |
\f
|
Form feed
| |
\l
|
Make the next letter lowercase
| |
\n
|
New line, return.
| |
\r
|
Carriage return.
| |
\t
|
Tab.
| |
\u
|
Make the next letter uppercase
| |
\x
|
Enables hex numbers
| |
\v
|
Vertical tab
| |
\\
|
Print backslash
| |
\"
|
Print double quotes
| |
\
|
Escape next character if known otherwise print. Also allows octal numbers.
| |
\L
|
Make all letters lowercase until the \E
| |
\U
|
Make all letters uppercase until the \E
| |
\Q
|
Add a backslash-quote to all the nonalphanumerics until the \E
| |
\E
|
Terminates the effects of \L, \U, or \Q
| |
\007
|
Any octal ASCII value
| |
\x7f
|
Any hexadecimal value
| |
\cx
|
Control-x
|
|