I have some strings like these :
00. 00:00:00 -
00. - 00:00:00 -
00. 00:00:00
00 - 00:00:00
00) 00:00:00
so, how can you see, they are similar (not equal). I need to “extrapolate” the internal block (formed by 00:00:00) and remove the rest of characters.
Every 0 in the example must be integer from 0 to 9 or the char ?.
How can I do it on jQuery? Regex?
As starting point to check this I’ve made a Fiddle
resultwill be an array with all the matches ofNN:NN:NN,??:??:??, or any combined version ofNand?.Here is a demo for a string with a single match & a string with multiple matches.