Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Regex matching after ASCII characters

by elTriberium (Friar)
on Oct 05, 2011 at 21:36 UTC ( [id://929888]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://929888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-16 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found