Fix number regex, closes #305