Click here to Skip to main content
15,887,393 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can someone help me in getting the Regular Expression for Regular Expression for MM/DD/YYYY HH:MM AM/PM

Thanks in advance
Posted
Updated 25-Mar-12 21:12pm
v2
Comments
kishore Rajendran 26-Mar-12 3:14am    
Please do google search first before posting question. There you can find solutions for problems like this am sure

The following regular expression can be used to match the above pattern
\d{2}/\d{2}/\d{4}\s+\d{2}:\d{2}\s+(AM|PM)

Expresso is an excellent to tool to make and test regular expressions. Some ready made regular expressions are also given in that program.
It is free and can be downloaded from here
http://www.ultrapico.com/Expresso.htm[^]
I think it will be useful to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900