If I have, for example, the below regex string:
'^/abc/(?P<some_int>\d{3})/\d{0,2}/$'
Is there an easy way to determine when a group is a number/int?
I know that it is an int, but say this needed to be processed somewhere else and it needed to be deduced from just the match object.
1 Answer