I have a field which contains a URL path something like:
part1/part2/part3 - part4/part5
What I need to do is return only the content of part 4. I can use CHARINDEX to return the position of the hyphen.
Really struggling with this one. How can I return contents between the - and the third '/'?
CHARINDEX only seems to return the first occurrence of a given character.
part1/part2/part3 - part4/part5
What I need to do is return only the content of part 4. I can use CHARINDEX to return the position of the hyphen.
Really struggling with this one. How can I return contents between the - and the third '/'?
CHARINDEX only seems to return the first occurrence of a given character.