On Wed, 2008-01-09 at 21:08 +0100, Mark Martinec wrote: > > m{^https?://(?:\w+\.)*google\.(com|co\.uk|tw)/\{2,\}search}
Ahem, missed this fact earlier and believed it to be a typo. However, two slashes at a place like that is highly unlikely to ever come from a human -- and thus makes for a good spam sign on its own. > Btw, there is no need to quote braces within the regexp, > as long as they are balanced (as they usually are). > > m{^https ... /{2,}search} //+ would do too, without any brace inside. :) guenther -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}