...and I&#39;m happy to report it works perfectly!!<div><br></div><div>Thanks, Michael!  <br><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 3:20 PM, Greg Brown <span dir="ltr">&lt;<a href="mailto:gwbrown1@gmail.com">gwbrown1@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">oh, I wasn&#39;t bashing anything.. the <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">&quot;I don&#39;t have time to learn python&quot; was a joke towards a friend of mine who always comes up with Python solutions to my Perl/Expect problems.  I could have been more clear on that.  He just like to rub it in that I should learn Python and he&#39;s right, if only for the time to squeeze it in somewhere.</span><div>

<font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><span style="font-size:13px"></span><font face="arial, sans-serif"><span style="border-collapse:collapse">Thanks, I&#39;ll give your suggestion a try and I appreciate the assistance!!</span></font></div>

<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><font color="#888888"><div><font face="arial, sans-serif"><span style="border-collapse:collapse">Greg</span></font></div>
</font><div><div></div><div class="h5">
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div><div><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 3:12 PM, Michael Peters <span dir="ltr">&lt;<a href="mailto:mpeters@plusthree.com" target="_blank">mpeters@plusthree.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 01/20/2010 03:02 PM, Greg Brown wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    my($which, $why, $match, $before, $after) = $ssh-&gt;expect(30,&quot;greg*:&quot;);<br>
</blockquote>
<br></div>
This regular expression doesn&#39;t mean &quot;greg&quot;-followed-by-anything. It means &quot;greg&quot;-followed-by-0-or-more-&quot;g&quot;. So it matches greg, gregg, greggg, etc.<br>
<br>
You need it to be &quot;greg.*:&quot;.<br>
<br>
Btw, this is same in just about any regular expression implementation (Python, Perl, etc).<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Any ideas?  I&#39;d really like to get this working.<br>
</blockquote>
<br></div>
Just a thought that you might get more helpful responses if you don&#39;t first bash the technology before asking for help (that&#39;s how I interpreted the &quot;I don&#39;t have time to learn python&quot; comment).<br>

<font color="#888888">
<br>
-- <br>
Michael Peters<br>
Plus Three, LP<br>
</font></blockquote></div><br></div>
</div></div></blockquote></div><br></div>