Say I have this example string
<td><a href="/one-two-three/menus" title="test"</td>
<td><a href="/one-two-three/menus/13:00 title="test"</td>
<td><a href="/one-two-three/schedule/could be multiple delimiters/14:00 title="test"</td>
I want to use regex to get 2 results only when the full string starts with /one-two-three
and ends with hh:mm
. Eg I want to get:
/one-two-three/menus/13:00
/one-two-three/schedule/could be multiple delimiters/14:00
I've tried regex pattern /one-two-three[\s\S]+?[0-9][0-9]:[0-9][0-9]
but this gives
Found 2 matches:
1./one-two-three/menus" title="test"</td> <td><a href="/one-two-three/menus/13:00
2./one-two-three/schedule/could be multiple delimiters/14:00
I can see why I get the results but my question is what pattern can I use to exclude parts without hh:mm
where there can be any number of delimiters between /one-two-three
and hh:mm