Re: Cannot formulate regex

2007-09-16 Thread Dotan Cohen
On 16/09/2007, Roel Schroeven <[EMAIL PROTECTED]> wrote: > FYI Kodos (http://kodos.sourceforge.net/) can be very useful for > developing, testing and debugging such regexes. Thanks, it's even in the Ubuntu repos. > If I have been able to see further, it was only because I stood > on the shoulders

Re: Cannot formulate regex

2007-09-16 Thread Dotan Cohen
On 16/09/2007, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Sep 16, 10:18 am, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > > I'd like to filter spam from a certain company. Here are examples of > > strings found in their spam: > > Mega Dik > > Mega D1k > > MegaDik > > Mega. Dik > > M eg ad ik > > M E

Re: Cannot formulate regex

2007-09-16 Thread Roel Schroeven
Dotan Cohen schreef: > I'd like to filter spam from a certain company. Here are examples of > strings found in their spam: > Mega Dik > Mega D1k > MegaDik > Mega. Dik > M eg ad ik > M E _G_A_D_ IK > M_E_G. ADI. K > > I figured that this regex would match all but the second example, yet > it matche

Re: Cannot formulate regex

2007-09-16 Thread Paul McGuire
On Sep 16, 10:18 am, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > I'd like to filter spam from a certain company. Here are examples of > strings found in their spam: > Mega Dik > Mega D1k > MegaDik > Mega. Dik > M eg ad ik > M E _G_A_D_ IK > M_E_G. ADI. K > > I figured that this regex would match all

Re: Cannot formulate regex

2007-09-16 Thread Paul McGuire
On Sep 16, 10:18 am, "Dotan Cohen" <[EMAIL PROTECTED]> wrote: > I'd like to filter spam from a certain company. Here are examples of > strings found in their spam: > Mega Dik > Mega D1k > MegaDik > Mega. Dik > M eg ad ik > M E _G_A_D_ IK > M_E_G. ADI. K > > I figured that this regex would match all

Cannot formulate regex

2007-09-16 Thread Dotan Cohen
I'd like to filter spam from a certain company. Here are examples of strings found in their spam: Mega Dik Mega D1k MegaDik Mega. Dik M eg ad ik M E _G_A_D_ IK M_E_G. ADI. K I figured that this regex would match all but the second example, yet it matches none: |[^a-z]m[^a-z]e[^a-z]g[^a-z]a[^a-z]d[