02-28-2014 01:27 AM - edited 03-18-2019 02:40 AM
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...?
02-28-2014 07:12 AM
Wanted to add to Rameez's post, we use (?!.*@%localdomains%$).*, and it fails as well. Prior to X8.1 it worked fine.
02-28-2014 07:19 AM
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
.*(?
03-06-2014 02:05 PM
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
03-20-2014 08:28 PM
03-22-2014 10:15 AM
Patrick,
i tried locate tool in my lab for the regex "(?!.*@%localdomains%.*$).*" and it works properly. can you please give more details ?
regards
Alok
03-24-2014 07:54 AM
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.
04-15-2014 07:39 AM
Noticed someone opened a TAC case for the negative lookbehind regex issue in the X8.x software.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide