Click here to Skip to main content
Rate this: bad
good
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 22:10pm
Edited 25-Mar-12 22:12pm
v2
Comments
kishore Rajendran at 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
0 Sergey Alexandrovich Kryukov 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,587
3 Zoltán Zörgő 3,406
4 Richard MacCutchan 2,397


Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 26 Mar 2012
Copyright © CodeProject, 1999-2015
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