procmail
[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:

22.33.4.0-22.33.4.255

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.

Thanks,

                                - fleet -
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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