Regular Expressions 101

Community Patterns

Android Logcat - Filter out lines containing word(s)

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!.*(NOT_THIS|OR_THIS))
/
gm

Description

Matches only lines that do not contain any of the provided strings.

Useful to suppress noisy/uninteresting stuff from logcat. Looking at you ViewRootImpl

Submitted by anonymous - 4 years ago