Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: Test the syntactic validity of a domain name

by ncw (Friar)
on Sep 22, 2000 at 18:00 UTC ( #33632=note: print w/replies, xml ) Need Help??


in reply to Test the syntactic validity of a domain name

It matches newlines at the end of the domain name :-

print could_be_a_host("www.domain.com\n"); # says 1
\z instead of $ in the regexps would fix it for recent perls as would a judicously placed chomp - but I'm sure you know this already!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2022-01-16 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (49 votes). Check out past polls.

    Notices?