Extract URLs from Text

Extract all URLs from a text string.

Code

General
import re
return re.findall(r'https?://[^\s]+', text)

Parameters

Text containing URLs

Server

More Python Snippets