A practical example showing how to remap a match found in a substring back to the global coordinates of the original document.