Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Exception from a character class

by ambrus (Abbot)
on May 30, 2013 at 20:06 UTC ( #1036126=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $text =~ s{(?!')\p{Punct}}{}g;
    
  2. or download this
    { no warnings "uninitialized"; $text =~ s{(')|\p{Punct}}{$1}g; }
    
  3. or download this
    $text = join "", $text =~ m{[\x27\P{punct}]+}g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-10-22 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls