I have one simple question , and forgive me , I know it is simple , but I am very bad in regular expression.
I have a text which represent time interval , eg [1-5] , ie , the start time is at 1 and ends at 5
1- want to check if the format is like this [number-number]. if not this format then this is error
2- extract the start time .. ie 1 in this case ,,,,
3- extract end time .. which is 5
4- if this question is complex.. is it possible to have multiple intervals , ie if i have 2 intervals , eg [1-5][8-10].. is it easy to detect return array of start time (array containts 1 and 8 ) and the end time (array contains 5 adn 10).