Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Again with regular expression
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi Jinnah,

Date Regular Expression:

Format: MM/DD/YYYY

MM: (0[1-9]|1[0-2])
DD: (0[1-9]|1[0-9]|2[0-9]|3[0-1])
YYYY: ([0-9][0-9][0-9][1-9]|[1-9]000|[1-9][1-9]00|[1-9][1-9][1-9]0)
* Assuming that Max year is 9999

Time Regular Expression:

Here Max Time: 23:59:59 and Min Time: 00:00:00

Hours: ([0-1][0-9]|2[0-3])
Mins: ([0-5][0-9])
Secs: ([0-5][0-9])

| Choice between two lines
( ) Used to group multiple regular expressions
[-] To specify a range

Try this it may helpful...
I am not sure about the 2nd thing...

Regards,
Sibi C A
Reply


Messages In This Thread
Help Again with regular expression - by jinnah - 09-12-2012, 08:15 AM
RE: Help Again with regular expression - by SIBICA - 09-12-2012, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,274 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,219 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,632 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,417 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,036 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)