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

You are right. That can easily be ammended by changing it to /^a(?!.*ab.).*b$/.

Regexes are hard, sometimes. Especially corner cases ;)