I have two filepath as strings
string1 = r"C:\Users\Admin"
string2= "C:\Users\Admin\Context1\Context2\filepath.dat"
How can I get the difference as "Context1\Context2\filepath.dat
"
As of now I am iterating string1 by characters and comparing with string2 when it fails I am returning string2[index:]
there should be something easier pythonic way to do this. Or point me to the documentation. Please see me as novice in python. Any help is much appreciated
string1 = 'C:\\Users\\Admin\\filepath.dat'