Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Library entries

1
javascript
Submitted by donivanes - 32 minutes ago

Greater manchester postcode validation

🤯
0
javascript
Submitted by anonymous - 12 hours ago

match

ádf
0
python
Submitted by guif - a day ago

regex_restauratio_Vé

regex
0
python
Submitted by guif - a day ago

regex_restauration

regex
0
pcre2
Submitted by fl0 - a day ago

parse/replace closed tag

parse and replace a {tag}..{/tag} or {tag}
0
javascript
Submitted by anonymous - a day ago

Matching anything minimum 1 character, max 50

^.{1,50}$
0
pcre
Submitted by Mark - 3 days ago

RangeForce exercise

exercise
0
pcre2
Submitted by ramses - 4 days ago

email

........

Date(Including Leap Year) YYYY-MM-DD hh:mm:ss

Vote

10

Regular Expression
pcre

/
/(^(((\d\d)(([02468][048])|([13579][26]))-02-29)|(((\d\d)(\d\d)))-((((0\d)|(1[0-2]))-((0\d)|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))\s(([01]\d|2[0-3]):([0-5]\d):([0-5]\d))$)/
/

Description

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