in reply to Recognizing numbers

I also notice that the regexes are anchored to the start and/or to the end with the $ and ^ characters ... do you intend that?   These will search for a string that consists only of digits, not one that contains digits.