“31/4/20100”, “31/04/2010” – April has 30 days only 8. “333/2/2008”, “29/02/200a” – day is invalid, year is invalid 7.It is a very simple function which uses a regular expression pattern match to test if a email is of a correct format. This takes in a parameter of the email address and then runs a pattern match against the regular expression.
regular expression pattern to separate the domain name from the email address.
“29/a/2008”, “a/02/2008” – month is invalid, day is invalid 6.
“30/2/2008”, “31/02/2008” – leap year in February has 29 days only 5.
Incase you didn't provide information in the format specified by the form field or leave it empty, the message will appear and form cannot be submitted until you get it right.
The third parameter is a Match Evaluator delegate that represents the method that processes and replaces the matched text.