diff --git a/logcat_entry.cpp b/logcat_entry.cpp index e22f6f5..cc1613b 100644 --- a/logcat_entry.cpp +++ b/logcat_entry.cpp @@ -8,7 +8,7 @@ #include "pcre2_wrapper.h" static const Pcre2Regex LogcatEntryRegex( - "^ *(?:(\\d+)(?:\\.\\d+)?|(\\d{4,})-(\\d{2})-(\\d{2}) (\\d{2}):(\\d{2}):(\\d{2}))" // time and date + "^ *(?:(\\d+)|(\\d{4,})-(\\d{2})-(\\d{2}) (\\d{2}):(\\d{2}):(\\d{2}))(?:\\.\\d+)?" // time and date "(?: +([\\w\\d._-]+))?" // optional user " +(\\d+)" // pid " +(\\d+)" // tid