Click here to Skip to main content
12,452,344 members (50,612 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: regular-expression
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 25-Mar-12 21:10pm
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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 26 Mar 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100