[Ken Manheimer] > How about a spam-estimate of 0-9? Pretty darn easy to match. [Skip Montanaro] > You're unfortunately back to trying to make numeric comparisons or > using fairly complex regular expressions to perform the comparisons. > The poor saps using Netscape would have to have four rules to match a > 60% or higher spam probability. I don't use Netscape or know which flavor of regexps it supports, but I don't know of any regexp pkg that lacks character-class support. That is, in Python regexp syntax, r"X-Spam-Whatever:\s+[6-9]" # match >= 60% r"X-Spame-Whatever:\s+[0-5]" # match < 60% r"X-Spame-Whatever:\s+[2357]" # match int(spamprob/10) is prime > This discussion almost certainly doesn't belong on python-dev. Is > there a more appropriate Python-related list already in existence in > which to hatch these ideas? Only one that comes to mind is the numerics list, since this *is* about numeric comparisons, and has the potential to become ugly <wink>>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4