Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Exception from a character class

by pirkil (Beadle)
on May 30, 2013 at 10:38 UTC ( #1036022=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $text = q{"This is dad's car." "OK", he said.};
    $text =~ s{\p{Punct}}{}xmsg;
    
  2. or download this
    $text =~ s{(?<!dad)\p{Punct}}{}xmsg;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1036022]
Approved by marto
help
Chatterbox?
shmem lifts an eyebrow @ Corion upon Re: how i capture a script error to a file ?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-04-27 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.