Translations:Manual:$wgSpamRegex/5/en

It will not block all spam, but it can reduce spam dramatically, with almost no negative impact upon legitimate users.