Using the re library my problem is in this line
x = re.match("([A-Z]:|home∼|\.\.?)\\", txt)
Im trying to get a match with a disk "E:", "home∼", or a parent folder ".." followed by a backslash
The error goes as following:
Exception has occurred: error bad escape (end of pattern) at position 20
Am i doing something wrong? I think i´m doing something really dumb and don't realise it