I Have a list of Strings with two different format e.g.
08:50 09:50
10:30
06:40 07:30
03:50 05:50
03:32
i need to iterate on them and subtract the first to be 01:00 & the third to be 00:50 and the fourth to be 02:00 and calculate to get the total for all of them to be 17:52
N.B.
The list consist of thousands of records not these records only i need a generic solution please
use a regexp for filtering between the different types?
\d\d:\d\d \d\d:\d\dshould be true for 08:50 09:50 but false for 10:30.There are more than enough tutorials on reg exps online.
http://www.regexpal.com/ helps with builduing new expressions.