http://qs1969.pair.com?node_id=929888


in reply to Re^2: Regex matching after ASCII characters
in thread Regex matching after ASCII characters

The problem with your code is the "BR|GR". Perl will now match any of these 2:
\A [A-Z0-9]{8} BR
OR:
GR
The second one matches. The solution would be to set $prompt_host to:
$prompt_host = (?:BR|GR)