I have a long string of ISO dates:
var str = \"\'2012-11-10T00:00:00.000Z\', \'2012-11-11T00:00:00.000Z\', **** \'2013-11-12T00:00:00.000Z\'\";
I have a long string of ISO dates
Assuming these are all using timezone Z, year >= 0 and are spaced and quoted the same way, you don't even have to search for , because they will be of the same length.
Z
>= 0
,
var first = str.slice(1, 25), last = str.slice(-25, -1);