Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 studying the Monastery: (5)
As of 2014-12-28 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls