Fixes wrong regular expression on detecting numbers.