Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Perl regular expression for amino acid sequence

by Roy Johnson (Monsignor)
on Dec 01, 2004 at 20:17 UTC ( [id://411552]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl regular expression for amino acid sequence
in thread Perl regular expression for amino acid sequence

The problem with using two regexes is: if it matches and then gets rejected, your pos counter is still incremented. Say you match a string of 6 chars, QGYNNN. What you want from that is QGYNN (right, OP?), but what happens is that all six characters get tossed.

That brings me to a flaw in my proposed solution: it will only give you QGYN from the above input. Needs some tweaking.


Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-29 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found