You can write this so the domain does not matter.
So here we are using pattern matching
def uri ="http://www.espn.com/watch/?gameId=1234&league=nfl&lang=es&profile=sportscenter_v1"
def parameters= uri=~ "https?://.*?/(.*)"
log.info parameters[0][1]
As of now the pattern that is written it can take care for http and https as well
You may have to use try catch so in case only www.espn.com comes without any parameter to handle that situation
To cover all possible scenarios for url you may refer this link
Even though the answered shared by Yeugeniuss is the most logical but this is also one of the way to do it