[英]Grok custom pattern
You're almost there. 你快到了。 You simply need to escape the pipe
|
您只需要逃脱管道
|
character with a backslash (otherwise it matches the 801
after INFO
), like this: 带有反斜杠的字符(否则,它与
INFO
之后的801
匹配),如下所示:
: INICIO CHAMADA \| (?<identificador_chamada>[0-9]{3})
^
|
add this
and you'll get this 你会得到这个
{
"identificador_chamada": [
"311"
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.