Author: Marc Perkel Date: To: Tamas TEVESZ CC: exim-users Subject: Re: [Exim] Regular Expression Help
That's probably more complex than I need. I'm just filtering spam.
If the first 6 character are in [0-9 and .] it's good enough.
Tamas TEVESZ wrote:
> On Wed, 28 Nov 2001, Marc Perkel wrote:
>
> > I'm not real good on regular expressions. I need an expression for a
> > spam filter that matches url's to IP addresses - example:
>
> grab your underwear (sorry for the long line, guys)
>
> ([0-9]|[0-9][0-9]|(1[0-9][0-9]|2[0-4][0-9]|25[0-5]))\.([0-9]|[0-9][0-9]|(1[0-9][0-9]|2[0-4][0-9]|25[0-5]))\.([0-9]|[0-9][0-9]|(1[0-9][0-9]|2[0-4][0-9]|25[0-5]))\.([0-9]|[0-9][0-9]|(1[0-9][0-9]|2[0-4][0-9]|25[0-5]))
>
> and this doesn't even include ipv6 :)
>
> --
> [-]
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##