I'm creating a compliance rule that will look to see if there are any snmp-server community strings that are not compliant with the rule. Unfortunately, one of the existing strings has an asterisk in it...and regular expression thinks that the asterisk is a part of the rule and errors out.
Here is the code:
^snmp-server community (?:(?!String1|String2|String3|*String4*)).*
I've tried putting a '\' and a double '\\' in front of the asterisks, but that did not work. Does anyone know how to do this to tell the regular expression statement that it is indeed an asterisk, and not a wildcard?
Thanks!