Automaticly find links

Source: http://stackoverflow.com/a/6707547