Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Reg Ex to find IP address in range

by Kanji (Parson)
on Aug 28, 2003 at 16:46 UTC ( [id://287446]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /\A   111 
      [.] 255 
      [.] ( \d | [1234]\d | 5[012345] )
      [.] ( \d | [1234]\d | 5[012345] )
    \z/x;
    
  2. or download this
    return 1 if 
      /\A 111 [.] 255 [.] (\d+) [.] (\d+) \z/x
      && $1 <= 55
      && $2 <= 55;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found