Regular Expressions 101

  • PCRE2 (PHP)
  • Match
0

Regular Expression

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

Description

This pattern can detect URLs.

Submitted by Anonymous