(The not-/ to stop .domain.com appearing in the path, the not-@ to stop username:password@ abuse.)
Better, though: use the URL class built into Java to parse a URL properly. You can then just read the host property and check that it endsWith your domain.