Skip to main content
Solved

Finding time in attribute with StringSeacher

  • March 14, 2019
  • 1 reply
  • 5 views

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

Hi all,

I have a set attributes and some of them consist of day time.And I would like to catch those that have such information. Examples:

- BUS LANE 6-9A EXC SAT-SUN-HOL

 

- MON-FRI 8A-8P SAT

 

- SHUTTLE BUS ONLY 6A-8P MON-FR

Can I catch those with StringSearcher? How should be the reqular experission for that?

Thanks in advance.

Best,

Nilüfer

Best answer by david_r

You could try a regex something like the following:

(\d\d?[AP]?)-(\d\d?[AP])

It will return two groups, one for the start time and one for the end time.

 

View original
Did this help you find an answer to your question?

1 reply

david_r
Celebrity
  • Best Answer
  • March 14, 2019

You could try a regex something like the following:

(\d\d?[AP]?)-(\d\d?[AP])

It will return two groups, one for the start time and one for the end time.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings