Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: poll ideas quest 2007 (Craziest escape)

by ambrus (Abbot)
on May 08, 2008 at 10:08 UTC ( #685425=note: print w/ replies, xml ) Need Help??


in reply to poll ideas quest 2007

Craziest backslash escape?

  • \1 (backreference)
  • \101 (octal)
  • \A
  • \B
  • \C
  • \D
  • \E
  • \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>
  • \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....


Comment on Re: poll ideas quest 2007 (Craziest escape)
Re^2: poll ideas quest 2007 (Craziest escape)
by chacham (Priest) on Jun 23, 2014 at 12:20 UTC

    Craziest backslash escape

    Don't know. Haven't read enough murder/thriller books.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://685425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-11-26 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (160 votes), past polls