Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for time in 24 hour format with out colon
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi All,

Could you please let me know the regular expression for time in 24 hour format with out colon.

Example it shoud match: 1112 0r 2359

Thanks and Regards,
Pallavi
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi,
Could you please check this, this might help u:
([01]?[0-9]|2[0-3])[0-5][0-9]

Regards,
Sankalp
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Thank you Sankalp!!

It worked for me.

Thanks and Regards,
Pallavi
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
Good to hear it worked 4 U.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,262 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,209 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,614 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,396 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,024 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)