Regular Expressions 101

Community Patterns

1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 20 days ago
1

XC410

PCRE2 (PHP >=7.3)
QS
Submitted by anonymous - a month ago
1

check csv content

PCRE2 (PHP >=7.3)
a
Submitted by abc - a month ago
1

ActivityWatcher

.NET 7.0 (C#)
sda
Submitted by anonymous - a month ago

Match ONLY valid URLs!

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?n)^(https?:\/\/)?((?!-)[a-z\d-]{2,63}(?<!-)\.)+[a-z]{2,24}(\.[a-z]{2})?(\/(([a-z\.]+\/?)+|[\w-]*\?(&?\w+=[^&#]+)+|#\w+(\/\w+)?)+)?$
/
gi

Description

Loading markdown...
Submitted by Henriii102 - 6 months ago
(Last modified 2 months ago)