Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Regex matching after ASCII characters

by elTriberium (Friar)
on Oct 05, 2011 at 21:36 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-10-04 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (18 votes). Check out past polls.

    Notices?