Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: print only uppercase sentences

by jwkrahn (Monsignor)
on Aug 04, 2013 at 19:29 UTC( #1047820=note: print w/replies, xml ) Need Help??


in reply to print only uppercase sentences

$ echo " HOW ARE YOU =>FINE How are You=>FINE HOW ARE You=>FINE" | \ perl -ne'print if /\A[[:upper:][:^alpha:]]+\z/' HOW ARE YOU =>FINE

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-08-30 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (411 votes). Check out past polls.