[regex] Match the path of a URL, minus the filename extension