Regular Expressions 101

Sponsors

Library entries

0
javascript

Match last word in string

no description available
Submitted by Isak - 5 years ago
0
javascript

All url with latest (optional)

no description available
Submitted by anonymous - 5 years ago
0
javascript

eQFetchRule for Classification

no description available
Submitted by anonymous - 5 years ago
0
javascript

Match router ARP table

no description available
Submitted by anonymous - 5 years ago
0
javascript

Google Sheets Find and Replace

no description available
Submitted by anonymous - 5 years ago
0
javascript

test altDays

no description available
Submitted by anonymous - 5 years ago
0
javascript

test altDays

no description available
Submitted by anonymous - 5 years ago
0
javascript

alt days regex

no description available
Submitted by anonymous - 5 years ago

dd-MM-yyyy validation

Vote

1

Regular Expression
javascript

/
^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
/
g

Description

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