Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

^\s not equal \S?

by SavannahLion (Pilgrim)
on Dec 04, 2003 at 08:31 UTC ( #312141=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $phrase = "This is a test, \"using quotes of 'two different' types.
    +\"";
    $phrase =~ s/[\S*\W*]//g;
    print $phrase;
    
  2. or download this
    my $phrase = "This is a test, \"using quotes of 'two different' types.
    +\"";
    $phrase =~ s/[^\s*\w*]//g;
    print $phrase;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-02-26 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (117 votes). Check out past polls.

    Notices?