Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-02-23 23:29
Flavor·PCRE2 (PHP)

/
\b(?:https?:\/\/)(?:www\d?\.)?[-\w\d\/?\.=&\+]+\b
/
gm
Open regex in editor

Description

This pattern can detect URLs.

Submitted by anonymous