Stripping Characters, mid(), left() ???
Posted on 2004-08-07
was wondering, how can I strip part of this string so I am left with the following
Current String: R:\documents\userA\myfile.doc
I want to strip off the R:\documents\ and leave: userA\myfile.doc
Any idea how to do this?
<cfset StrippedPath = #left(key,11)#> In this example key is equal to : R:\documents\userA\myfile.doc
That basically left me with R:\documents\
This is what I want removed, but I want to be able to <cfoutput> what is left AFTER removing R:\documents\
which would be : userA\myfile.doc
Can anyone help? The first part of my path is set in stone : R:\documents\ so I can only work with that, I thought about trying to use right() function, but the right part of my path varies in length, the only set part of the path I can remove is the R:\documents\