[Top] [All Lists]

IP regex

2009-02-19 21:32:53
I'm having a hard time describing an IP range.

For example (made up) the range of IPs is:

The last octet is getting me.

I've tried [0-2][0-9][0-9] but in the back of my mind something says "that ain't right!)

Do I need to add parens, ie [0-2]([0-9](0-9]))??

And is they *any* way to test a regex in actual procmail format? Grep/egrep differ enough that I'm never sure I've got it right.

I think I just need an example that I *know* is correct.


                                - fleet -
procmail mailing list   Procmail homepage:

<Prev in Thread] Current Thread [Next in Thread>