Created
September 10, 2019 20:06
-
-
Save gaalha/c0c1234db884ff9b8720ec1422c5cd32 to your computer and use it in GitHub Desktop.
Regex to evaluate dates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10/10/19 | |
^\d{1,2}\/\d{1,2}\/\d{4}$ | |
^\d{2}\/\d{2}\/\d{4}$ --> dd/MM/yyyy | |
^\d{1}\/\d{1}\/\d{4}$ --> d/M/yyyy | |
^\d{1}\/\d{2}\/\d{4}$ --> d/MM/yyyy | |
^\d{2}\/\d{1}\/\d{4}$ --> dd/M/yyyy | |
^\d{2}\/\d{2}\/\d{2}$ --> dd/MM/yy | |
^\d{1}\/\d{1}\/\d{2}$ --> d/M/yy | |
^\d{1}\/\d{2}\/\d{2}$ --> d/MM/yy | |
^\d{2}\/\d{1}\/\d{2}$ --> dd/M/yy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment