From: "Aaron D. Gifford" Date: 2012-06-30T04:14:19+09:00 Subject: Re: Ruby pty and expect ... >            reader.expect(/$|Password/) do |a, b| ... You do remember that the $ character is special in regular expressions... Try escaping it. Aaron out.