Re: [Assp-test] Antwort: Regex Help to capture underscores replacing spaces

2011-07-24 Thread K Post
That last regex: (?:[a-z0-9]+_){5} is SO simple, but appears to do what I'd need, at least until the spammers change the tactics and start using other separators. I'm all for finding another way to block these. The problem is that they often come via public email servers like gmail or yahoo. It'

[Assp-test] Antwort: Regex Help to capture underscores replacing spaces

2011-07-20 Thread Thomas Eckardt
Ken, I think there is no easy way to get a regex that will catch all of these. (?ms-i:(?:[a-z0-9_\?+\-\$\%][A-Z][^\s]*?){4}[a-z0-9_\?+\-\$\%][A-Z])=>0.95 or (?ms-i:(?:[a-z0-9_\?+\-\$\%][A-Z].*?){4}[a-z0-9_\?+\-\$\%][A-Z])=>0.95 (the {4} marks the occurence) - the second variant will also match i