Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-10-14 20:55
Flavor·ECMAScript (JavaScript)

/
\b(https?|ftp|file)://\S+
/
g
Open regex in editor

Description

Finds URLs in a larger body of text. URLs may or may not be enclosed in punctuation, such as parentheses, that are not part of the URL.

Submitted by D0nB1z