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:
OR:\A [A-Z0-9]{8} BR
The second one matches. The solution would be to set $prompt_host to:GR
$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 |
In Section
Seekers of Perl Wisdom