thanks for answering my questions, I just want to clarify what I was asking.
I'm trying to split the following string using str.split('+'), I'm reading in the strings from a text file:
['\A'+'ABBOTT\s|\s'+'ABBOTT\s|\s'+'ABBOTT$|\A'+'ABBOTT LABORATORIES\s|\s'+'ABBOTT LABORATORIES\s|\s'+'ABBOTT LABORATORIES$']
the desired results would be:
['\A'+'ABBOTT\s|\s', 'ABBOTT\s|\s', 'ABBOTT$|\A', 'ABBOTT LABORATORIES\s|\s', 'ABBOTT LABORATORIES\s|\s', 'ABBOTT LABORATORIES$']
But instead I'm getting: ["'\A'", "'ABBOTT\s|\s'", "'ABBOTT\s|\s'", "'ABBOTT$|\A'", "'ABBOTT LABORATORIES\s|\s'", "'ABBOTT LABORATORIES\s|\s'", "'ABBOTT LABORATORIES$'"]
But I can't get the \ to stay as a single, after splitting Thanks again!!!