Expect: gotchas
From FVue
Match dot (.) in regexp
Why doesn't this match?
# output: ' .svn' expect -re " +.svn"
Because it's a regular expression, stupid, and a dot (.) has a special meaning in a regular expression. The correct syntax is with the dot escaped:
expect -re " +\.svn"
Advertisement