I see the Regular Expression that handles the Calls to Internet Via DNS Zone, which was working properly till my X7 versions has stopped from X8.
.*(?<!%localdomains%)
The above regex will only allow non local domains to be queried to the DNS.
But, we see that the regex is now failing to process non local domain addresses. Is there any changes to regex behavior in X8...?
Wanted to add to Rameez's post, we use (?!.*@%localdomains%$).*, and it fails as well. Prior to X8.1 it worked fine.
Although this did work..
.*(?!.*@%localdomains%$).*
The Negative lookahead and lookbehind noted in the online help for regular expressions that provide examples on how to do this don't seem to work without a little tweaking.
(?!.*@example.com$).* matches any string that does not end with @example.com
.*(?
I would love to here a response from Cisco on this one as well....
And cheers to Patrick for the RegEx edit
Many thanks
Chris
Patrick,
i tried locate tool in my lab for the regex "(?!.*@%localdomains%.*$).*" and it works properly. can you please give more details ?
regards
Alok
Alok -
Both negative lookahead and lookbehind fail for me when I do a check pattern. I've copied the example out of the online help and replaced inserted %localdomains%. Even you're noted example failed for me.
Noticed someone opened a TAC case for the negative lookbehind regex issue in the X8.x software.