Use start and end for matched URL when replacing