'(?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
No. Just convert the match with int() or float() before storing it in the
dictionary. That is, instead of:
d[key] = match
use
d[key] = float(match)
or similar.
--
Steven
I was afraid that was the only option. Oh well, thought I'd ask
anyway. Thanks for your help.
Jeremy
Why "afraid"? What's the problem with calling int or float on the match?
--
Steven
He must not be Dutch
:-) SCNR