Hi
There's a few posts out there about searching for the public and private SNMP strings, but I've not found any about searching for any unauthorised strings. After a good deal of head scratching I've come up with the following regex...
^snmp-server community [a-zA-Z0-9]*[^(string1\s|| string2\s)]
This matches any snmp-community string which isn't string1 or string2.
Hope this helps someone.
Keith