We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a180a2 commit 283de39Copy full SHA for 283de39
README.md
@@ -1,8 +1,8 @@
1
# parse-date-regex
2
3
This regex validates and parses dates in the format YYYY-MM-DD, taking into account
4
-the number of days in each month and leap years. Leading zeros are discarded in the
5
-captures.
+leap years and the number of days in each month. Leading zeros are discarded in the
+captures. Accepts dates with year in range \[0, 9999\].
6
7
By removing the spaces and comments in the regex, it can be used in Javascript or any
8
other language that supports PCRE (Perl-compatible regular expressions), *e.g.*:
0 commit comments