Regular Expressions 101

Community Patterns

0

web validation

PCRE2 (PHP >=7.3)
web validation
Submitted by anonymous - a year ago
0

css var regex

PCRE2 (PHP >=7.3)
css var regex
Submitted by anonymous - a year ago
0

ipv4

PCRE2 (PHP >=7.3)
Find ipv4 addresses
Submitted by anon - a year ago

Match any UK Date

0

Regular Expression
PCRE (PHP <7.3)

/
(?<=^|\s)(?<Day>0[1-9]|1[0-9]|2[0-9]|3[0-1]|[1-9])(?:st|nd|rd|th)?(?:\/| |-|\.)(?<Month>0[1-9]|1[0-2]|[1-9]|Jan|January|Feb|February|Mar|March|Apr|April|May|Jun|June|Jul|July|Aug|August|Sep|September|Oct|October|Nov|November|Dec|December)(?:-|\/| |\.)(?<Year>(?:[1-2]\d)?(?:\d\d))(?=\s)
/
gmi

Description

Loading markdown...
Submitted by anonymous - 5 years ago