I was writing pipeline and in the gsub processor I wrote a regex. As per the documentation
Allowed characters
Any Unicode characters may be used in the pattern, but certain characters are reserved and must be escaped. The standard reserved characters are:
. ? + * | { } [ ] ( ) " \
I had to escape the double quotes but not the other characters. Why?
"pattern": "\\\"\\\"(?=[a-zA-Z0-9])"
worked.
I was using the kibana dev tool. Is it because of that that I have to use 3 slashes to escape the double quote? I was expecting to use 2 slashes.
I am not an expert on regex but will like to have some clarity on this.