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

live4tech has asked for the wisdom of the Perl Monks concerning the following question:

Hello. I do not understand why the following regex does not match "123dog":

/\A\d+[a-z]+\z/

I can get this to match with an app that checks regex expressions, but not within a perl program.

Also, I can get /^\d+[a-z]+$/ to always match, either within the perl program or in a regex checking app.

Does anyone know why this is? Am I missing something obvious?