in reply to Re^3: Net::Telnet::Cisco and prompt regex issue
in thread Net::Telnet::Cisco and prompt regex issue
To this:Prompt => '/(?m:.*[\w.-]+\s?(?:\(config[^\)]*\))?\s?[\$#>]\s?(?:\(enab +le\))?\s*$)/'
The key difference being the ^ that marks the beginning of the linePrompt => '/(?m:^[\w.-]+\s?(?:\(config[^\)]*\))?\s?[\$#>]\s?(?:\(enabl +e\))?\s*$)/'
|
|---|