Extract URLs from Text

Extract all URLs from a text string.

Code

General
text.scan(/https?:\/\/[^\s]+/)

Parameters

Text containing URLs

Server

More Ruby Snippets