Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - 8 days ago
1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 12 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 13 days ago

Regex to find URLs in text

1

Regular Expression
ECMAScript (JavaScript)

/
(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$;-])*
/
gim

Description

Loading markdown...
Submitted by Saheed Odulaja - 6 months ago