[SlugBug] Re: regular expression for ip address matching

Mr. Adam ALLEN adam at dynamicinteraction.co.uk
Mon Nov 10 20:50:15 GMT 2003


On Fri, 2003-11-07 at 23:32, patricka at mkdoc.com wrote:
> Mr. Adam ALLEN writes: 
> 
> > Anyone good with regular expressions, at the end of work today and a bit
> > of Coffee I couldn't get the right regular expression sorted. 
> > 
> > I need to make a decision based on a certain ip.. as in
> >  
> >  match any ip address except 100.201.30.0
> 
> sounds like you need a simple equate rather than a regex. 
> 
> print unless $_ eq '100.201.30.0'; 
> 

It was with some Cisco software- and had to be a simple regex.

It turns out some strange running bug made it so that
 deny 100.201.30.*
 permit .*
didn't work Thursday/Friday.

Today, it turned out to work as documented- so it became as simple as it
should have been all along.

-- 
Regards,
Adam Allen.

adam at dynamicinteraction.co.uk
pgp http://search.keyserver.net:11371/pks/lookup?op=vindex&search=adam%40dynamicinteraction.co.uk



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.email-lists.org/pipermail/slugbug/attachments/20031110/3151aec8/attachment.bin


More information about the SlugBug mailing list