added expect_regex, modified expect to call it
Merge pull request #193 from petercable/tcp_client

added expect_regex, modified expect to call it