Match any timestamp in log file ?
Posted: Thu Mar 15, 2018 7:53 pm
I think the following will match any combination of short or long timestamp in log file, but not 100% certain and there may be a better way.
\b(^|^[{n}:{n}] AM |^[{n}:{n}] PM |^[{n}:{n}:{n}] AM |^[{n}:{n}:{n}] PM )\b
\b(^|^[{n}:{n}] AM |^[{n}:{n}] PM |^[{n}:{n}:{n}] AM |^[{n}:{n}:{n}] PM )\b