used preg match to get the return url for SetEC examples