Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: self limiting regex help

by dsheroh (Prior)
on May 22, 2002 at 15:37 UTC ( #168484=note: print w/replies, xml ) Need Help??

in reply to Re: self limiting regex help
in thread self limiting regex help

That doesn't solve the any number of no more than two different characters part. Both solutions posted so far will match up to 2 non-atcg characters, but I read the spec as allowing for, say 50 Rs and 100 Ws to be mixed in, but not one each of Y, H, and N.

I could be wrong, but I have a feeling that this one can't be solved by a single regex. (Or at least not one written by a mere mortal - there are some regex deities floating around here who might prove me wrong...)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2019-12-07 14:31 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (161 votes). Check out past polls.