Community Patterns

Community Library Entry

3

Regular Expression
Created·2015-08-06 06:16
Flavor·ECMAScript (JavaScript)

/
[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*
/
i
Open regex in editor

Description

I use this to match the first url present in a text message.

Submitted by anonymous