replaceRE to extract part of a URL

You need to escape it properly. See: