Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Regex fun

by Hena (Friar)
on Dec 15, 2009 at 14:03 UTC ( [id://812874]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    .$.$G$.$.$C$.$.$.$G$.$,$,$,$.$.$.G,G,G...G,G...GG,.G.G...G.G....$.G..G
    +,........G....,GGGG.,,,..G...,,.G.G..G..G..G
    .G.GG..GG.G..,,G,,CG,G,GG..GG.$G.GGGG,,..GG...G.,G.GG.,G,G.$...,,.GGGG
    +GG.GCG..G,,G,.G..G,,,G,.GGGG.,..G...,,,,G,,G..GGGG
    A.,,,,,.+1GG.G.,,G,...G..GG,.G....+1G..GG..G,,G,,G.G,,.,,,.,,.CG.,,,,.
    +,..G.,,,.,.,,GGGGGG,,.....G..GGGGG.,.G,,GG.G..GG,,
    ,....,.,..,G.,.,,,.,,,,G,,,.,.,..,.,,,...GG,.,G.,G......,,,..,,.......
    +.,..,.,,.,...,,..,.,C,..,,,.,,,,,....,,..,,,.,....
    .,.,,.,...,,.,,,-1a.,,,,,.,,,,,,..,..........,,,,,.,...,,.,,^],^].^],^
    +],^].^],^F,^],^],^],^],
    
  2. or download this
    while (m/\+([0-9]+)[ACGTNacgtn]/g) { 
      print "diff+: $1\n";
      my $m = $1;
      s/\+[0-9]+[ACGTNacgtn]{$m}// 
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://812874]
Approved by moritz
Front-paged by JadeNB
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-06-14 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.