Regular Expressions 101

Community Patterns

1

just for test

PCRE2 (PHP >=7.3)
don't mind
Submitted by anonymous - 11 minutes ago
1

datime

PCRE2 (PHP >=7.3)
datetime
Submitted by anonymous - 4 days ago
1

Match paths

PCRE2 (PHP >=7.3)
Match paths
Submitted by os_niko - 10 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 - 3 months ago