Regular Expressions 101

Sponsors

Library entries

3
pcre

Active Affiliate, Contractor or Employee

no description available
Submitted by MR - 7 years ago
3
pcre

JSON recognition

no description available
Submitted by anonymous - 6 years ago
3
pcre2

Email

email format control
Submitted by ahmetbarut - a year ago
3
pcre2

example

example
Submitted by anonymous - a year ago

Date: DD-MM-YYYY hh:mm:ss

Vote

18

Regular Expression
pcre

/
^(0[1-9]|1\d|2[0-8]|29(?=-\d\d-(?!1[01345789]00|2[1235679]00)\d\d(?:[02468][048]|[13579][26]))|30(?!-02)|31(?=-0[13578]|-1[02]))-(0[1-9]|1[0-2])-([12]\d{3}) ([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$
/
gm

Description

Loading markdown...
Submitted by Ka. - 9 years ago