Python: Regex re.escape
re.escape(text)
-
Return a string with a backslash character
\
inserted in front of every non-alphanumeric character. This is useful if you want to use a given string as a pattern for exact match.
re.escape(text)
\
inserted in front of every non-alphanumeric character. This is useful if you want to use a given string as a pattern for exact match.