I\'m writing python code to parse different types of numbers from a string using regular expressions and have run into an annoying problem which I don\'t understand.