I have a 2×1 cell array containing the following data;
Data_Time_Stamps_Cells = ' 086 2020 18:30:19.578'' 086 2020 18:30:18.569'
I'm attempting to extract the HH:MM:SS.FFF portion of these time stamps using the following:
exp = '([\d:\.]+)';times = regexp(Data_Time_Stamps_Cells, exp, 'tokens');
The result is a 2 x 1 cell array;
times = '086' '2020' '18:30:19.578''086' '2020' '18:30:18.569'
Why am I getting the entire contents of the Data Time Stamps Cells in 3 individual cells?
Best Answer