in reply to Re: need help with a regex
in thread need help with a regex

{,8} is perfectly valid it means a maximum of 8 times, but I meant to write {8,} anyways which means at least 8 times.

Replies are listed 'Best First'.
Re^3: need help with a regex
by jwkrahn (Abbot) on Oct 22, 2010 at 21:03 UTC
    {,8} is perfectly valid it means a maximum of 8 times

    {,8} is a perfectly valid string which in a regular expression matches the character '{' followed by the character ',' followed by the character '8' followed by the character '}'.    Perhaps you are thinking of the quantifier {0,8}?

      It is a quantifier in the context I wrote /VILMWFCA{8,}/ it's quantifying the number of residues to be at least 8 sequential residues from VILMFWCA.
        I wrote /VILMWFCA{8,}/ ...
        kennethk has twice now pointed out your failure to use code tags. What's so difficult about wrapping <c> and </c> or <code> and </code> around your snippet so that your code renders properly?

        Cheers,

        JohnGG