Help wanted with regexCheck
geeknik opened this issue · comments
Maybe I'm a dunce, but I can't get the regex checking to work. I want to alert on a responseBody that contains 920510
but not NoSuchKey
. My provider:
"checkIn": "responseBody",
"checkFor": "^(?=.*?\\920510\\b)((?!NoSuchKey).)*$",
"regexCheck": true
The issue I'm having:
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
2020/03/11 19:51:18 error parsing regexp: invalid or unsupported Perl syntax: `(?=`
Hi @geeknik ,
This is because Go does not support Regex lookaround.
golang/go#18868
I will add some feature to the tool in future to support such scenario.
Thanks
No longer applicable.