I wanted to find the character \
in a string but this also happens to be the character for escaping so when i use string1.find("\")
it doesn't work due to the backslash not letting the "
close off the string.
If I add a trailing space, the error is fixed, however then it will not find just the backslash.
How can I put the backslash character \
inside a string can still close it.