AnsweredAssumed Answered

Wily 8x regex not working in 9x

Question asked by Manv1nder_B0para1 on Jul 26, 2012
Latest reply on Jul 26, 2012 by Srikant.Noorani
Recently we upgraded from 8x to 911, and now we are facing some problems with the regular expressions we used in 8x JS Calculators, Metric Groupings, Domains.xml etc.

For example in 8x we used expressions like: .*metric1.*|.*Metric2.* and it used to return both metric1 and metric2.
Now in 911 using same expression only returns metric2.

Also, we figured out that using parentheses in later case will resolve the issue. and putting ? in the end of the expression will also resolve it.
I mean: ( .*metric1.*|.*Metric2.*) or .*metric1.*|.*Metric2.*?
Even .*metric1.*|(.*Metric2.*) also returns both metrics.


So what I really want to know is what has been changed in 911 that caused this change in behavior of the regex engine?

And is there any other way to resolve it, as it would be a pain to change all metric expressions in all those places.

Outcomes