Empty string instead of unmatched group error

后端 未结 3 887
萌比男神i
萌比男神i 2020-11-29 11:21

I have this piece of code:

for n in (range(1,10)):
    new = re.sub(r\'(regex(group)regex)?regex\', r\'something\'+str(n)+r\'\\1\', old, count=1)
         


        
3条回答
提交回复
热议问题