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

Re^3: Regex Extraction Help

by Kenosis (Priest)
on Aug 09, 2012 at 19:05 UTC ( #986587=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $info = (split /\s*;\s*/, $dat)[1];
    
  2. or download this
    use Modern::Perl;
    
    my $dat = 'DR Pfam; PF00070; Pyr_redox; 2.';
    $dat =~ /;\s*(\w+)\s*;.+;/ and say $1;    #prints PF00070
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2015-06-30 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?















    Results (801 votes), past polls