I have to read file that has text as "#EXT-X-PROGRAM-DATE-TIME:2014-04-17T07:18:02.350+00:00" for every 10 seconds and ill be having such files about 400.
I need to fetch value 2014-04-17T07:18:02.350+00:00
I did a sample program that picks the above value with substring.
String aacKey = strLine.substring(strLine.indexOf(#EXT-X-PROGRAM-DATE-TIME:) + 5, strLine.length() - 1);
However, this looks like a costly approach where i see char is taking too much of heap space where allocated space isn't enough for the operations.
What is the best approach to address this. Also, what is the regular expression that i can use to fetch using Pattern, Matcher instead of substring().
Appreciate your response.