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)

Replies are listed 'Best First'.
Re^4: Regex matching after ASCII characters
by Anonymous Monk on Oct 05, 2011 at 21:41 UTC

    Perfect, thank you guys for your help.