Hi Vijay,
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.*\|(.*)
Result: 4 agents included as part of the mg
I hope this helps,
Regards,
Sergio