How to replace backward "\" slash from a string

PythonServer Side ProgrammingProgramming

In Python it does give the desired result

>>> var  = "aaa\\bbb\\ccc and ddd\\eee"
>>> var.split('\\')
['aaa', 'bbb', 'ccc and ddd', 'eee']
raja
Published on 09-May-2018 21:36:45
Advertisements