How to validate regex patterns?

Use below given regex patterns If you want to validate the date using a format different from yyyy-mm-dd. If the above list does not include the format you want to validate, you can easily modify any of the above given regex to suit your needs. Also, do not forget to change the date format in the SiImpleDateFormat constructor.
For More Information Please Refer:


You May Also Like to Read: