I have a log (text) file with this syntax
1/21/18, 22:48 - ~text~
1/21/18, 22:48 - ~text~
1/23/18, 22:48 - ~text~
~text~
~text~
1/24/18, 22:48 - ~text~
And I would like to get an array of all dates, for example ["1/21/18","1/21/18","1/23/18","1/24/18"]
Because my final goal is to build an histogram of frequencies for each date to know the amount of events that each day had (just to know the evolution of events through time) (so, if you want to give a tip to do this easier, its welcome!)
Ive tried regex according to question 4709652 but thats not working as expected. Anyways, one of my issues is that the textfile is big (hundreds of megabytes) which causes to slow down.
Whats the optimal way to do this?
Thanks!