Hi,
Looks to me like negative lookahead regular expressions are not working (I tested a bit and got the same result you did).
Not sure if there's some syntax difference or if the ?! is being interpreted by something else.
You could change your
to this
It should work and remove the need for the additional if statement you added, but in the end, it's still just a workaround for the negative lookahead not working properly.
Cheers
Looks to me like negative lookahead regular expressions are not working (I tested a bit and got the same result you did).
Not sure if there's some syntax difference or if the ?! is being interpreted by something else.
You could change your
Code Select
if ($1 ~= "^([0-9]+) .*")to this
Code Select
if ( ($1 ~= "^([0-9]+) .*") && ( ! ( $1 ~= "^[0-9]+ (127|::1|fe80).*" ) ) ) {It should work and remove the need for the additional if statement you added, but in the end, it's still just a workaround for the negative lookahead not working properly.
Cheers

