Raw string literals:
>>> r'abc\dev\t'
'abc\\dev\\t'
More Related Contents:
- How to understand regular expression with python?
- Why do backslashes appear twice?
- Process escape sequences in a string in Python
- How can I remove the ANSI escape sequences from a string in python
- How to un-escape a backslash-escaped string?
- Escape special characters in a Python string
- What does a leading `\x` mean in a Python string `\xaa`
- How can I put an actual backslash in a string literal (not use it for an escape sequence)?
- Adding backslashes without escaping [duplicate]
- User input integer list [duplicate]
- Simpler way to create dictionary of separate variables?
- Pandas filtering for multiple substrings in series
- How do I .decode(‘string-escape’) in Python 3?
- Decode escaped characters in URL
- How do I format a string using a dictionary in python-3.x?
- How to split strings into text and number?
- Is there a generator version of `string.split()` in Python?
- ValueError: could not convert string to float: id
- String to Dictionary in Python [duplicate]
- Determine prefix from a set of (similar) strings
- How do I serialize a Python dictionary into a string, and then back to a dictionary?
- How to sort the letters in a string alphabetically in Python
- Print all items in a list with a delimiter
- Examples for string find in Python
- Python: ‘str’ object is not callable
- How can I print a single backslash?
- How to explain the reverse of a sequence by slice notation a[::-1]
- Element-wise string concatenation in numpy
- FutureWarning: The default value of regex will change from True to False in a future version
- How to remove all integer values from a list in python