Change logic to recognize URLs. Now using regex.