About
Pricing
Community
Teams
Start Free Trial
Log in
Ashok Ash
asked on
11/26/2017
Need regular expression for timeslot
The timeslot format is HH:MM AM/PM - HH:MM AM/PM (example - 08:00AM-10:00AM) Need regular expression to validate this
Regular Expressions
Java
3
1
Last Comment
Rgonzo1971
8/22/2022 - Mon
CEHJ
11/26/2017
example - 08:00AM-10:00AM
Try
"\\d{2}:\\d{2}[AP]M-\\d{2}:\\d{2}[AP]M"
Select all
Open in new window
ASKER CERTIFIED SOLUTION
Rgonzo1971
11/27/2017
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Rgonzo1971
12/15/2017
A solution
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Open in new window