Wrote code to select the first URL from a string.