regular expression for integer and decimal numbers

gary gary.wilson at gmail.com
Thu Sep 23 20:51:17 EDT 2004


I want to pick all intergers and decimal numbers out of a string.
Would this be the most correct regular expression to use?

"\d+\.?\d*"



More information about the Python-list mailing list