logcat doesn't recognize --regex option

Viewed 4997

According to documentation https://developer.android.com/studio/command-line/logcat.html logcat should support the option:

-e <expr>, --regex=<expr>   Only print lines where the log message matches <expr> where <expr> is a regular expression.

However I cannot run logcat with this option:

$ ./adb logcat --regex="Vocabulary"
unknown option -- -Unrecognized Option

$ ./adb logcat -e "Vocabulary"
unknown option -- eUnrecognized Option

What am I missing?

2 Answers

adb logcat regex will not work on TAG's. So check word "Vocabulary" is a TAG. and If you want search with TAG's use:

adb logcat -s TAG.
Related