title: Can pexpect be told to ignore a pattern or signal?
body: <p>I'm trying to write a python script to access several Cisco network devices.  Sadly the devices are not set up the same, some have banners up that appear at weird places.  These banners might have the patterns that have some of the same stuff a prompt might have.</p>
  
  <p>For example, once I log in I expect a prompt of <code>'hostname#'</code>, so I basically use a <code>pexpect('#')</code>  I might have to handle certain other prompts such as <code>'hostname&gt;'</code> as well so <code>pexpect('&gt;')</code> works.  I'll really have a list of possible prompts, plus a timeout and act accordingly.  </p>
  
  <p>This is fine unless a banner shows up in the middle somewhere.  For example, after logging in a banner might show up that says  <code>## Welcome ##</code> and be there right before the prompt.  I believe if I could tell pexpect to ignore the regular expression <code>#.*\r</code> I'd be fine, but I'm not sure this is possible.  Is it possible to have pexpect ignore a string, or is there a better way to go about this?</p>