Closed mildred closed 3 years ago
There does not seems to be an escape function that takes a string and escape regex-specific characters in it. It is useful to dynamically construct regexes.
You can use from re import escapeRe in the meantime.
from re import escapeRe
Thank you
There does not seems to be an escape function that takes a string and escape regex-specific characters in it. It is useful to dynamically construct regexes.