in reply to How to get prompts for expect

Here is the generic prompt string I used good effect with the Net::Telnet module. I think it will work with the expect module also.
'/[\$%#>] $/'