1_4M_N008

joined 1 year ago
[–] 1_4M_N008@programming.dev 6 points 8 months ago

thanks, i will pay more attention for docs

 

hello guys. i am trying to match one or more digit from end of string

import re

print(re.match(r'\d+$', "hello001"))
print(re.match(r'[0-9]+$', "hello001"))

output None from both print statement. I've tried my regex on regex101.com and it seems working probably.