Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Molecular weight of Protein

by 2teez (Priest)
on Aug 07, 2013 at 05:40 UTC ( #1048248=note: print w/replies, xml ) Need Help??


in reply to Molecular weight of Protein

You could also use: "Positive lookahead"

$_ = '>gi|226694487|sp|Q1DF98.2|ATPF_MYXXD RecName: Full=ATP synthase +subunit b; AltName: Full=ATP synthase F(0) sector subunit b; AltName: + Full=ATPase subunit I; AltName: Full=F-type ATPase subunit b; Short= +F-ATPase subunit b'; print $1 if/(.+?)(?= RecName)/;
NOTE: Am only showing the use of positive lookahead using the OP.

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048248]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-02-21 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (310 votes). Check out past polls.