For example, if I have
myStr = r'D:\@Music\Classical\Scriabin'
then
print myStr[myStr.rfind('\\'):]
works fine. I thought it would be equivalent to
print myStr[myStr.rfind(r'\'):]
but the latter expression raises an EOL exception.
Could anybody tell me why? The r
should escape the single backslash or am I misunderstanding the whole thing altogether?