I need to copy rows, but I also need, to change path field:
old path value = '<src_dir>'/workspace_id/project_id/file_id.file_format
new path value = '<src_dir>'/workspace_id/new_project_id/new_file_id.file_format
I tried to find the dot position and count from it two uuid lengths + slash and put there new slash-separated project and file IDs
overlay(path, placing '{<new_project_id>}/{<new_file_id>}' from (position('.' in path)-(36 * 2 + 1) for (36 * 2 + 1)))
But if a src_dir contains a dot in its name, the position of that dot will be taken. Is there any way to take the position of the last dot?