Validating last character regex

Rated 4.87/5 based on 715 customer reviews

“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.

“31/4/20100”, “31/04/2010” – April has 30 days only 8.

NET Framework is first-class, and even just within Microsoft® ASP.

“31/9/2010”, “31/09/2010” – September has 30 days only 10.

“31/6/2010”, “31/06/2010” -June has 30 days only 9.

The following examples illustrate the use and construction of simple regular expressions.

Each example includes the type of text to match, one or more regular expressions that match that text, and notes that explain the use of the special characters and formatting.

Leave a Reply