in reply to Re: A Regex simple Question
in thread A Regex simple Question

That will fail (false negative) for a000ab.

Replies are listed 'Best First'.
Re^3: A Regex simple Question
by moritz (Cardinal) on Sep 06, 2007 at 16:36 UTC
    You are right. That can easily be ammended by changing it to /^a(?!.*ab.).*b$/.

    Regexes are hard, sometimes. Especially corner cases ;)