- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

12.2 All the sequences and escapes

Those not usable within a bracketed character class (like [\da-z]) are marked as “Not in []”.

\000              Octal escape sequence.
\1                Absolute backreference.  Not in [].
\a                Alarm or bell.
\A                Beginning of string.  Not in [].
\b                Word/non-word boundary. (Backspace in []).
\B                Not a word/non-word boundary.  Not in [].
\cX               Control-X (X can be any ASCII character).
\C                Single octet, even under UTF-8.  Not in [].
\d                Character class for digits.
\D                Character class for non-digits.
\e                Escape character.
\E                Turn off \Q, \L and \U processing.  Not in [].
\f                Form feed.
\g{}, \g1         Named, absolute or relative backreference.  Not in [].
\G                Pos assertion.  Not in [].
\h                Character class for horizontal whitespace.
\H                Character class for non horizontal whitespace.
\k{}, \k<>, \k”  Named backreference.  Not in [].
\K                Keep the stuff left of \K.  Not in [].
\l                Lowercase next character.  Not in [].
\L                Lowercase till \E.  Not in [].
\n                (Logical) newline character.
\N                Any character but newline.  Experimental.  Not in [].
\N{}              Named or numbered (Unicode) character.
\p{}, \pP         Character with the given Unicode property.
\P{}, \PP         Character without the given Unicode property.
\Q                Quotemeta till \E.  Not in [].
\r                Return character.
\R                Generic new line.  Not in [].
\s                Character class for whitespace.
\S                Character class for non whitespace.
\t                Tab character.
\u                Titlecase next character.  Not in [].
\U                Uppercase till \E.  Not in [].
\v                Character class for vertical whitespace.
\V                Character class for non vertical whitespace.
\w                Character class for word characters.
\W                Character class for non-word characters.
\x{}, \x00        Hexadecimal escape sequence.
\X                Unicode "extended grapheme cluster".  Not in [].
\z                End of string.  Not in [].
\Z                End of string.  Not in [].
ISBN 9781906966027Perl Language Reference ManualSee the print edition