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

Re: extract only uppercases from string

by johngg (Abbot)
on Aug 23, 2012 at 11:11 UTC ( #989285=note: print w/replies, xml ) Need Help??


in reply to extract only uppercases from string

$ perl -E ' > $str = q{G_I1E2_GTGGAG^303CTGgacgCCCTGC_I2E3_TACA}; > say for > map { tr{[ACGT]}{}cd; $_ } > split m{[a-z]+}, $str;' GGTGGAGCTG CCCTGCTACA $

Cheers,

JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989285]
help
Chatterbox?
[Discipulus]: oh and dont miss my last poetry!
[marioroy]: Hello all. After several attempts, am able to move forward and will soon release a Parallel:: ForkManager compatible MCE::Hobo:: Manager, also MCE::Hobo::Simple, and refactored MCE::Hobo engine supporting multiple instances. Wait works beautifully.
[marioroy]: MCE::Shared has been refined that it allows sharing Tie::File and hash objects containing {fh} key.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-05-26 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?