mouss a écrit : > Matt Garretson a écrit : >> This thread is getting ridiculous. Just use >> >> Subject =~ /po.*\d+/i >> >> To avoid losing millions of dollars, surely they can put >> up with a couple of porn and impotence spams. :-) > > or > > Subject =~ /\bPO\W.*\d+/i > >
Thanks to John for pointing out that this misses PO12345... second try: Subject =~ /\bPO[^a-z].*\d/i and if some "PO"s come in without digits, then simply Subject =~ /\bPO[^a-z]/i of course, spammers could use "Free PO!?N 69 cents only", but as Matt G. said, missing some porn spam shouldn't be a problem in this case...