'how can I validate a date of birth using Regular Expression (RegExp), in a react form?
Solution 1:[1]
Try using this RegEx
^(?:0[1-9]|[12]\d|3[01])([\/.-])(?:0[1-9]|1[0-2])\1(?:19|20)\d\d$
You can read more about this regex in this post: Date of birth validation by using regular expression
Checkout Coenwulf's answer
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Cores13 |

