Search This Blog

YYYY-MM-DD regular expression

String regex = "(19|20)\\d{2})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]";

No comments:

Post a Comment