Regular Expressions 101

Community Patterns

0

Kendala

PCRE2 (PHP >=7.3)
kendala
Submitted by rey - 2 years ago
0

Match color string

PCRE2 (PHP >=7.3)
Match color string
Submitted by EZ - 2 years ago
0

web validation

PCRE2 (PHP >=7.3)
web validation
Submitted by anonymous - 2 years ago
0

web validation

PCRE2 (PHP >=7.3)
web validation
Submitted by anonymous - 2 years ago
0

css var regex

PCRE2 (PHP >=7.3)
css var regex
Submitted by anonymous - 2 years 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)