Your question is about backslash \, not forward slash `/` so I edited the title.
– buranSep 26 '21 at 08:00
1
The back slash character, \, introduces an escape. In the examples, it precedes a `"`, which is how you can put a `"` character in a string. If it weren't escaped, it would end the string.
– Tom KarzesSep 26 '21 at 08:00
Use re.escape. Check out this link: https://docs.python.org/3.4/library/re.html#re.escape - notice that The '_' character is no longer escaped in version 3.3.
– DanielleSep 26 '21 at 08:04