I have a regular expression that searches for some numbers and puts them into a dictionary, i.e. '(?P<integer>\d+)\s+(?P<float>\d+\.\d+)' Is it possible to have the results of the matches returned as int or float objects instead of strings? Thanks, Jeremy