cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
910
Views
5
Helpful
7
Replies

Regex issue post X8 Upgrade

RAMEEZ RAHIM
Level 1
Level 1

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...?

Capture.PNG

7 Replies 7

Patrick Sparkman
VIP Alumni
VIP Alumni

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

Has anyone from Cisco been able to figure this one out , since the upgrade of VCS x8.1 breaks the negative lookahead and lookbehind? Either the two regex strings need to be recognized properly by the VCS, or the help documents need to be updated to include the extra characters added to the regex string to make them work with the current version of the VCS.

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.

Patrick Sparkman
VIP Alumni
VIP Alumni

Noticed someone opened a TAC case for the negative lookbehind regex issue in the X8.x software.

CSCuo23974

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: