How to use string(strip..) function?

I have the following strings:
S1 = “C:/myfolder/abc/myfile.txt”
S2 = “C:/myfolder”

I want to use string() function such that:
S3 = “/abc/myfile.txt”, ie. (S3 = S1 - S2)

How can I do that? Should I use string(strip…)? I don’t know how to use this

string(STRIP) removes leading and trailing spaces.

What you want to do seems more related to string(REPLACE) or string(REGEX REPLACE).

I hope this helps.

1 Like