<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:24px"><div dir="ltr"><span>I'll give it a try tomorrow before submitting a change order to redo all the MOTD.</span></div><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;" id="yui_3_16_0_1_1429059924962_2823">  <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 24px;" id="yui_3_16_0_1_1429059924962_2822"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1429059924962_2821"> <div dir="ltr" id="yui_3_16_0_1_1429059924962_2838"> <hr size="1">  <font size="2" face="Arial" id="yui_3_16_0_1_1429059924962_2837"> <b><span style="font-weight:bold;">From:</span></b> heasley <heas@shrubbery.net><br> <b><span style="font-weight: bold;">To:</span></b> Todd Heide <workwithcisco@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> heasley <heas@shrubbery.net>; "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 14, 2015 7:59 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rancid] Cisco Banners<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_1_1429059924962_2820"><br>Tue, Apr 14, 2015 at 09:31:27PM +0000, Todd Heide:<div class="qtdSeparateBR"><br><br></div><div class="yqt9761275520" id="yqtfd59611"><br clear="none">> Tried a few different things, including a direct match for the expression and still errors. <br clear="none">> <br clear="none">> expect: does "\r\nrouter#\r\nrouter#terminal length 0\r\nrouter#" (spawn_id exp6) match regular expression "###############################################################################"? Gate "###############################################################################"? gate=no<br clear="none">> <br clear="none">> What I am seeing though, and wonder if this is why,  terminal length 0  For several lines down I am seeing ter, termin, terminal, etc. until the last line above then is gives up.   I dont know why terminal length 0 is coming up at the prompt, but when I turn debug off I am seeing it every time I clogin to this router.  If this was the only router that has a MOTD, I would push to have it removed, but they want it on all devices. </div><br clear="none">> <br clear="none">>  <br clear="none"><br clear="none">where did that regex come from?  "########### etc etc"<br clear="none"><br clear="none">you may also try anchoring it:<br clear="none"><br clear="none">{^\[^ #]+\[#>]+}<br clear="none"><br clear="none">the last regex in the login procedure should eat the o/p one line at a<br clear="none">time, so it can be anchored.<div class="yqt9761275520" id="yqtfd24852"><br clear="none"></div><br><br></div> </div> </div> </blockquote>  </div></body></html>