Atoi and RegularExpressionMatching