Generate Regex Pattern From String To Float Python 2