Regular Expressions 101

Sponsors

Library entries

3
pcre

apache access log

parse the apache access log
Submitted by pagu - 7 years ago
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 Regex(DD/MM/yyyy)

Vote

18

Regular Expression
pcre

/
^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$
/
g

Description

Loading markdown...
Submitted by alcaamado - 7 years ago