Regular expression for validating date saoirse ronan dating
Make sure to be in global mode (g flag), case insensitive and to have the dot all option on.
This regular expression will match all HTML tags and their attributes.
Your user interface should take care of the formatting problem by having a clear documentation on the format and/or split the phone into parts (area, exchange, number) and/or have an entry mask.
The following expression is pretty lenient on the format and should accept 999-999-9999, 9999999999, (999) 999-9999.
Otherwise you can end up with values in the database that have no relation to reality.
The function has been improved now so that the day, month and year values are checked to ensure that they're in the right ball-bark (ie. Also the year must be between 1902 and the current year.