6

这是一些包含单引号的文本:

Cannot read property 'email' of undefined:

当我使用上述文本运行以下查询时

filter @message like /Cannot read property 'email' of undefined/
| stats count()

我无法计数。但是,实际上我的日志中有很多上述文本。

问题是,如何转义查询中的单引号?

4

1 回答 1

10

You need to escape the quotes \'.
Like this:
/Cannot read property \'email\' of undefined/

于 2019-10-20T14:07:56.373 回答