Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android logcat不';t识别--regex选项_Android_Regex_Android Logcat - Fatal编程技术网

Android logcat不';t识别--regex选项

Android logcat不';t识别--regex选项,android,regex,android-logcat,Android,Regex,Android Logcat,根据文件 logcat应支持以下选项: -e <expr>, --regex=<expr> Only print lines where the log message matches <expr> where <expr> is a regular expression. 我遗漏了什么?adb logcat正则表达式在标记上不起作用。所以检查单词“词汇表”是一个标签。 如果您想使用标签的用途进行搜索: adb logcat -s TAG.

根据文件 logcat应支持以下选项:

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

我遗漏了什么?

adb logcat正则表达式在标记上不起作用。所以检查单词“词汇表”是一个标签。 如果您想使用标签的用途进行搜索:

adb logcat -s TAG.

这是因为您的设备不支持它

请运行以下命令:

adb shell logcat --help
请搜索以下内容:

-e <expr>, --regex=<expr>
    Only print lines where the log message matches <expr>
    where <expr> is a regular expression
-e <expr>, --regex=<expr>
    Only print lines where the log message matches <expr>
    where <expr> is a regular expression
adb logcat | grep -e 'xxx'