> > This requires there to be _a_ letter before "p" which isn't always > what you want either.
Yup, Definetly not what I want. > > > Or I could easily just do this: > > /\bpen.s/i > > But I thought that spammers could use punctuation to get past that. > > Actually, > > $ perl -le 'print "matches" if (".peninsula" =~ m/\bpen/)' > matches But not: $ perl -le 'print "matches" if (".peninsula" =~ m/\bpen.s/)' ;) > > ... punctuation matches \b just fine. I didn't know that! (Or completely blew by that fact when reading.) But that makes sense. Thanks! > > In case you want to be proactive, the following characters look like > good "graphical equivalents": > > e 3 \xE8 \xE9 \xEA \xEB (e grave, acute, circumflex, dieresis) > E \xC8 \xC9 \xCA \xCB (E grave, acute, circumflex, dieresis) > > i 1 l \xEC \xED \xEE \xEF I \xCC \xCD \xCE \xCF (same for i and I) > ! \xA1 | \xA6 ... and maybe even L > > This is for ISO-8859-1; I imagine other character sets are less likely > to be targeted because they are less likely to be supported by MUAs. SWEEEEET!! I know a few people who will be happy to have these regexs. Big heaping thanks for those. > > /* era */ > > Yrg'f ubcr gurl qba'g qvfpbire Havpbqr nal gvzr fbba. ^^^^ Ooooook. ?huh? ^^^^^^ -Chris ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk