Hi,
Can someone help me extract the time in MS from the following log line?
Dec 15, 2015 9:35:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 183678 ms
I'm trying this, but doesn't seem to work correctly:
If the message is regular (ie if it always says INFO: Server start up in...) then you would be better off making the regex more explicit.
INFO:\sServer\sstartup\sin\s(?<ms>\d+)\s
You can see the difference between them in the regex debugger on https://regex101.com/
On a side note, you can use the following site to test your regex: https://regex101.com/
Hello
try this regex:
\s*(?<ms>\d*)\s*ms
Regards