QTP Forums

Full Version: Regular Expressions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can you anyone tell a regular expression to check that a date entered has a valid format of Wednesday,January,23,2008 ?
Hi Anuumi,
Below is the regular expression for the above Date format.

"(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday),(January|February|Mar​ch|April|May|June|July|August|September|October|November|December),(\d|[1-9]|3[0-1]),200\d"


This expression will for any date which is in above mentioned format.
Hope this is helpful for you.
Thanks
VENKATA
Reference URL's