Regular Expressions 101

Community Patterns

Strip Android Logs of Date/Time and process

1

Regular Expression
PCRE (PHP <7.3)

/
\d+-\d+.\d{2}:\d{2}:\d{2}\.\d*\s*\d*\s*\d*\s*[A-Z]
/
g

Description

Strip Android Logs of Date/Time and process. This helps if you want to diff 2 logs and remove the different date/time and process numbers

Submitted by anonymous - 7 years ago