Update regex to be better

This takes into account the domain and absolute URLs.