Click here to Skip to main content
11,714,776 members (82,251 online)
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 21:10pm
Edited 25-Mar-12 21: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 570
1 Richard MacCutchan 275
2 Maciej Los 274
3 OriginalGriff 140
4 CHill60 135
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260


Advertise | Privacy | Mobile
Web02 | 2.8.150819.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