need a bit of help with regex (php). I have the following text:
11 hours 30 secs 12 mins
and
12 mins 11 hours 30 secs
and
12 minutes 11 hours 30 secs
I would like to extract the no. before mins the regex should work with all text combinations.
Any help with this would be appreciated.
Thanks
A simple regex like this should work:
The number of minutes will be in the first capture group.