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


in reply to Re^2: Simple regular expression problem
in thread Simple regular expression problem

Therefore he anchored the regex with $ to match until the end regardless if a digit is present or not