Skip to content

Commit 3177175

Browse files
committed
...
1 parent 03cdc0f commit 3177175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# parse-date-regex
22

33
This regex validates and parses dates in the format YYYY-MM-DD, taking into account
4-
the number of the day in each month and leap years. Leading zeros are discarded.
4+
the number of days in each month and leap years. Leading zeros are discarded.
55

66
By removing the spaces and comments in the regex, it can be used in Javascript or any
77
other language that supports PCRE (Perl-compatible regular expressions), *e.g.*:

parse-date-regex.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Written by André Kugland <kugland@gmail.com>
44

55
# This regex validates and parses dates in the format YYYY-MM-DD, taking into account
6-
# the number of the day in each month and leap years. Leading zeros are discarded.
6+
# the number of days in each month and leap years. Leading zeros are discarded.
77

88
$regex = qr/^
99
0{0,3}(?<year>

0 commit comments

Comments
 (0)