On 6/14/05, Praedor Atrebates <[EMAIL PROTECTED]> wrote: > On Tuesday 14 June 2005 16:37, Wagner, David --- Senior Programmer Analyst --- > WGO wrote: > [...] > > > I have this (pertinent) code in my script: > > > > > > $dnakmotif ='[KRH][L{3,}V{3,}I{3,}F{3,}Y{3,}A{3,}][KRH]; > > > > $dnakmotif > > ='[KPH](L{3,5}|V{3,5}|I{3,5}|F{3,5}|Y{3,5}|A{3,5}){1,}[KRH]'; > > This should allow some thing to start with KPH and have one or more of the > > series of LVIFYA at least 3 and no more than 5 and ending with KRH. > >
i believe this may be closer to what you're looking for: $dnakmotif = 'KPH([LVIFYA]{3,5}){1,)KRH' this allows all 3 characters "KPH" at the beginning rather than selecting between K or P or H. the same logic for "KPH" at the end. since you're "or"ing between L V I F Y A, this should accomplish the same in a much more compact format hopefully i'm on the right track. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>