Backreference in regex

Hi,
is it possible to use backreference for regex in auditbeat/filebeat?
I am trying something like this:
\"1\":\"(\w+)\",\"2\":\"\1\"
and the following string should match:
"1":"string","2":"string"

But I am getting error:
Exiting: error initializing processors: failed to initialize condition: error parsing regexp: invalid escape sequence: \1

re2 does not support backreferences.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.