I have some entries in log and I want to use Pattern matcher to get the entries out of log.
Log entries
1223-12-23 00:00:00 exception : 1223. Operation Cannot be done
1223-12-24 00:00:01 exception : 1221. Operation Cannot be done
I want to get entries like
String [] date = {1223-12-23 00:00:00, 1223-12-24 00:00:01}
String [] message = {exception : 1223. Operation Cannot be done, exception : 1221. Operation Cannot be done}
Is there an efficient way to do this.
Better than my other answer: