Fixes regexp to filter out URLs with protocols and documents the regexp
Removes unused function