in reply to Re^3: Expect question
in thread Expect question

I have replaced my "Password: " pattern with the entire Connecting to... blah blah string and that one is matched. The regexp does not work which seems weird. In this case it's easy to either use the entire string or even generate it before using it, so I can use the IP and a parameter, but it just doesn't feel right. Somehow I suspect I should be able to verify only the last part of a return... I can easily imagine servers that spit out a whole load of stuff before prompting you for an input and I just don't think we always need to search and match that entire speech... At least I know it's about tail matching now.