
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
How to replace backward "" slash from a string
In Python it does give the desired result
>>> var = "aaa\bbb\ccc and ddd\eee" >>> var.split('\') ['aaa', 'bbb', 'ccc and ddd', 'eee']
- Related Articles
- How to replace before first forward slash - JavaScript?
- How to extract string before slash from a vector in R?
- Replace backward slashes with forward slashes - JavaScript
- Fetch substrings from a string with words separated by slash in MySQL?
- C# Program to replace a special character from a String
- How to Replace characters in a Golang string?
- How to use MySQL SELECT LEFT to fetch the records containing string with slash
- How to replace string using JavaScript RegExp?
- How to use Java string replace method?
- Remove the whitespaces from a string using replace() in JavaScript?
- How to replace all dots in a string using JavaScript?
- How to replace “and” in a string with “&” in R?
- How to replace all occurrences of a string in JavaScript?
- How to replace line breaks in a string in C#?
- How to replace duplicate whitespaces in a String in Kotlin?

Advertisements