[SlugBug] regular expression for ip address matching
Chris J
cej at nightwolf.org.uk
Sat Nov 8 16:53:07 GMT 2003
And Lo! The Great Prophet "Mr. Adam ALLEN." uttered these words of wisdom:
>
> I need to make a decision based on a certain ip.. as in
> match any ip address except 100.201.30.0
>
> I can't do if($_ !~ /100\.201\.30\..*/) since the parser is really
> limited. (By the way it's not perl)
If it's not perl, what is it? Knowing the context in which this is going to
be used would help a lot :)
Chris...
--
\ Chris Johnson \ NP: Sunscreem - 08. Your Hands
\ cej at nightwolf.org.uk ~-----,
\ http://cej.nightwolf.org.uk/ ~-----------------------------------,
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
More information about the SlugBug
mailing list