Can I specify regex group to return float or int instead of string?

Jeremy jlconlin at
Thu Feb 25 16:48:44 CET 2010

I have a regular expression that searches for some numbers and puts
them into a dictionary, i.e.


Is it possible to have the results of the matches returned as int or
float objects instead of strings?


More information about the Python-list mailing list