import re
testes = ("Vini12cius 000.000.000-00",
"Vini12cius 00000000000",
"Vinicius12 00000000000",
"12Vinicius 00000000000",
"000.000.000-00 Vini12cius",
"00000000000 Vini12cius",
"00000000000 Vinicius12",
"00000000000 12Vinicius")
padrao_regex = re.compile(r"(\d+)(?=[a-zA-Z]+)|(?<=[a-zA-Z])(\d+)")
substituicoes = [re.sub(padrao_regex, "", elemento_teste) for elemento_teste in testes]
if substituicoes:
for substituicao in substituicoes:
print(substituicao)
aW1wb3J0IHJlCgoKdGVzdGVzID0gKCJWaW5pMTJjaXVzIDAwMC4wMDAuMDAwLTAwIiwKCSAgICAgICAgIlZpbmkxMmNpdXMgMDAwMDAwMDAwMDAiLAogICAgICAgIAkiVmluaWNpdXMxMiAwMDAwMDAwMDAwMCIsCiAgICAgICAgCSIxMlZpbmljaXVzIDAwMDAwMDAwMDAwIiwKICAgICAgICAJIjAwMC4wMDAuMDAwLTAwIFZpbmkxMmNpdXMiLAogICAgICAgIAkiMDAwMDAwMDAwMDAgVmluaTEyY2l1cyIsCiAgICAgICAgCSIwMDAwMDAwMDAwMCBWaW5pY2l1czEyIiwKICAgICAgICAJIjAwMDAwMDAwMDAwIDEyVmluaWNpdXMiKQoKCnBhZHJhb19yZWdleCA9IHJlLmNvbXBpbGUociIoXGQrKSg/PVthLXpBLVpdKyl8KD88PVthLXpBLVpdKShcZCspIikKc3Vic3RpdHVpY29lcyA9IFtyZS5zdWIocGFkcmFvX3JlZ2V4LCAiIiwgZWxlbWVudG9fdGVzdGUpIGZvciBlbGVtZW50b190ZXN0ZSBpbiB0ZXN0ZXNdCmlmIHN1YnN0aXR1aWNvZXM6CiAgICBmb3Igc3Vic3RpdHVpY2FvIGluIHN1YnN0aXR1aWNvZXM6CiAgICAgICAgcHJpbnQoc3Vic3RpdHVpY2FvKQ==