I want to have this agent expression case insensitive.
I have tried it as below.
But it doesn't work.
I found this thread in internet: Regex: ignore case sensitivity - Stack Overflow
I did a quick validation in my lab and it seems to be working as expected
You should use: (.*)\|.*\-(?i)TEST(?-i).*\|(.*)
Test#1) Set "TEST" as case sensitive using (.*)\|.*\-(?i)TEST(?-i).*\|(.*)
Result: 6 agents included as part of the mg
2) Set only "TES" as case sensitive using (.*)\|.*\-(?i)TES(?-i)t.*\|(.*)
Result: 4 agents included as part of the mg
3) Set only "ES" as case sensitive using (.*)\|.*\-T(?i)ES(?-i)T.*\|(.*)
I hope this helps,
It doesn't work.
something like below works but not all the values are being case insensitive.
Something wrong with the wildcard at the end of regex.
(.*) -\ [tT][eE][sS][tT] \- [tT]est\|(.*)
This way it works but I want other regex to be case insensitive as well.
Hiko_Davis may have more advice
Also here is a useful guide from Guenter_Grossberger : Regular Expressions and Metric Groupings Guide
I'll take a look at this later today and reply back.
Does this still need a reply, or was this resolved with Sergio's post?
It resolved the issue.
Retrieving data ...