http://www.perlmonks.org?node_id=637474


in reply to A Regex simple Question

Update: Disregard this, I read too quickly initially.
Just my 2 cents...
m/^a[^ab]*b$

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo