...and I'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"><<a href="mailto:gwbrown1@gmail.com">gwbrown1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">oh, I wasn't bashing anything.. the <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">"I don't have time to learn python" 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'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'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"><<a href="mailto:mpeters@plusthree.com" target="_blank">mpeters@plusthree.com</a>></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->expect(30,"greg*:");<br>
</blockquote>
<br></div>
This regular expression doesn't mean "greg"-followed-by-anything. It means "greg"-followed-by-0-or-more-"g". So it matches greg, gregg, greggg, etc.<br>
<br>
You need it to be "greg.*:".<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'd really like to get this working.<br>
</blockquote>
<br></div>
Just a thought that you might get more helpful responses if you don't first bash the technology before asking for help (that's how I interpreted the "I don't have time to learn python" 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>