Craziest backslash escape?
- \1 (backreference)
- \101 (octal)
- \A
- \B
- \C
- \D
- \E
- \F (Update 2015-06-08: added, new in 5.16.0)
- \G
- \H
- \K
- \L
- \N{LATIN SMALL LETTER A}
- \N{latin:a}
- \N{U+2013} (Update 2010-11-24: added, newly documented in perl 5.12.0)
- \N (non-newline) (Update 2010-03-29: added, new in perl 5.12.0)
- \PL (Update 2008-08-29: added, dunno how I missed this)
- \P{IsLower} (Update 2008-08-29: added, dunno how I missed this)
- \Q
- \R
- \S
- \U
- \V
- \W
- \X
- \Z
- \a
- \b (backslash)
- \b (boundary)
- \cT
- \d
- \e
- \f
- \g1
- \g{-1}
- \g{named}
- \h
- \k<named> or \k{named} or \k'named'
- \l
- \n
- \o{20023} (Update 2010-11-24: added, new in perl 5.13.3)
- \pL
- \p{IsLower}
- \r
- \s
- \t
- \u
- \v
- \w
- \x41
- \x{2019}
- \z
We could also do favourite regex modifier, but that'd be too similar to I resolve to finally grok and use the regex option... except that we'd now also have /p. See also The most annoying common way to get a string literal in Perl is....
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|