I have a string which contains the following information.
mystring = "'$1$Not Running', ''"
I want to be able to remove the extra space and , '' after the Running. I tried to use strip() but it does not seem to work.
My desired output is mystring = "'$2$Not Running'"
I am not sure what I am missing here? Any help is appreciated.
split(",")[0], but we'd need to see more more possible values in order to generalize it.x = '"{}"'.format(x.strip(", '"))?