Update regex to correctly match urls