ajustes, incluindo a opção \. e trocando por [.]

This commit is contained in:
2024-06-06 08:58:47 -03:00
parent 67fbce9fec
commit 8ca2eed36e
2 changed files with 1 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ def beautify_str(str_msg):
def replace_regex(variavel):
variavel = variavel.replace("\\d", "[0-9]")
variavel = variavel.replace("\\D", "[^0-9]")
variavel = variavel.replace("\\.", "[.]")
variavel = variavel.replace("\\w", "[a-zA-Z0-9_]")
variavel = variavel.replace("\\W", "[^a-zA-Z0-9_]")
variavel = variavel.replace("/^", "^")