B
Bertram Hurtig
Hi,
I have a big file - each line may start with date and time (german date
formatting). To be able to sort and compare these lines, I want to
remove the Date and time sub strings.
For the date and time, I got this regex:
\d\d\.\d\d.\d\d\d\d\s\d\d\:\d\d:\d\d
I know there are classes like Pattern and Matcher, but this only tells
me if the String contains a date + time - but no idea how to also get
the relevant index positions to be able to remove the substrings found.
I know I could "manually" do this writting my own parsing method,
but I would prefer to have it nice, short (and performance optimized) -
and I don't want to reinvent the wheel.... ;-)
Any ideas?
Thanks in advance,
Betram
I have a big file - each line may start with date and time (german date
formatting). To be able to sort and compare these lines, I want to
remove the Date and time sub strings.
For the date and time, I got this regex:
\d\d\.\d\d.\d\d\d\d\s\d\d\:\d\d:\d\d
I know there are classes like Pattern and Matcher, but this only tells
me if the String contains a date + time - but no idea how to also get
the relevant index positions to be able to remove the substrings found.
I know I could "manually" do this writting my own parsing method,
but I would prefer to have it nice, short (and performance optimized) -
and I don't want to reinvent the wheel.... ;-)
Any ideas?
Thanks in advance,
Betram