Extract links from text