in reply to self limiting regex help
If I understand your conditions correctly, this should do:
print if /^ [ACGT]* ([RYMKSWHBVDN])? (?:[ACGT]|\1)*([RYMKSWHBVDN])? (?:[ACGT]|\1|\2)*$ /ix;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: self limiting regex help
by spq (Friar) on May 22, 2002 at 16:36 UTC |
In Section
Seekers of Perl Wisdom