To match everything but a specific pattern you would likely need to use a zero length negative lookahead regular expressin pattern. These have been supported in Tcl regexp since 8.1 and Cisco IOS provides Tcl 8.3.4 if I remember correctly. So something along the lines of '^(?!PARSER).*'. I don't believe the % is presented to EEM (but a debug could help prove that, I simply forget if it is actually) and I assume then that the string you would be comparing this to would then start with PARSER. If not you could remove the ^ anchor.
Sadly EEM applet regexp is not as fully capable as Tcl regexp. I believe Mike's example will work in a Tcl policy. If you write up the applet you'd like in a text editor, paste it into http://www.marcuscom.com/covert_applet/ to get the Tcl version.
Hmm... something in the back of my brain is telling me that we may be running into an issue where the regular expression package used is not the Tcl one for this situation. It has been a couple of years since I last looked at this code though so I can't remember. Let me spend some time looking at it again.
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...