H
Hugo Ferreira
Hi!
Is it possible to "automagically" coerce the named groups to python types? e.g.:
But what I'm looking forward is for the type to be 'int'.
Cheers!
Hugo Ferreira
Is it possible to "automagically" coerce the named groups to python types? e.g.:
<type 'str'>type(re.match('(?P<x>\d*)', '123').groupdict()['x'])
But what I'm looking forward is for the type to be 'int'.
Cheers!
Hugo Ferreira