try to get credentias from url using regex