Hi,
I have a string like this:
str = "ppp= ['wwww', 'ttttt']\n"
Now in this, I want to remove 'ttttt'. After removing it should be like this:
"ppp= ['wwww']\n"
How can I acheive this? I am not able to achieve this using string replace.
Appreciate the help.
Thanks,
Sashi.
I have a string like this:
str = "ppp= ['wwww', 'ttttt']\n"
Now in this, I want to remove 'ttttt'. After removing it should be like this:
"ppp= ['wwww']\n"
How can I acheive this? I am not able to achieve this using string replace.
Appreciate the help.
Thanks,
Sashi.
Comment