Link to home
Start Free TrialLog in
Avatar of 特别 张
特别 张

asked on

Python:Regular methods use problems

>>> re.match("asd,asdasd,asd(\d)+","asd,asdasd,asd12312312").group(1)
'2'

I can't understand the result.
I think the result should be '1'
SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rgonzo1971
Rgonzo1971

A solution