Skip to main content
Solved

Finding time in attribute with StringSeacher

  • March 14, 2019
  • 1 reply
  • 9 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.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • 8394 replies
  • 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.