• re, path trouble, need help


I've no idea how to deal with this mission:


Find words which can be path to the OS windows catalog. Names of the

catalogs can't end with spaces and contain them.

string = 'C:\Users\Public 1:/users d:\localdocuments\Public\doc'

# result == ['C:\Users\Public','d:\localdocuments\Public\doc']

!!!help, help, enlighten me, please ~.~

as you can see, '\U' is in the given string, and then I got an error: [ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-4: truncated \UXXXXXXXX escape (<MYCODE>, line 6) ]