@shacker wow, cool find with the rindex. Would it would it work if you strip out the $ and the -1? I think the default searches for the last occurrence.