Solved

Finding time in attribute with StringSeacher

  • 14 March 2019
  • 1 reply
  • 1 view

Badge +1

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

icon

Best answer by david_r 14 March 2019, 12:41

View original

1 reply

Userlevel 4

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.

 

Reply