Reg Ex to find IP address in rangeby stew (Scribe)
|on Aug 28, 2003 at 16:20 UTC||Need Help??|
stew has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to determine if a clients IP address is within a certain range. The first two node are fixed so that's not a problem - the last two can be anywhere between 0 and 55 each ie xxx.xxx.0.55 - good xxx.xxx.56.56 - bad
I initially tried
but it didn't take me long to figure out that xxx.xxx.48.55 would fail DOH!
It's been a long hard day, if anyone has a quick answer to end my frustration that would be most welcome