optimize the domain extraction regex