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']
Updated on: 2020-06-23T14:44:01+05:30

695 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements