-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Andy Roberts wrote:
I don't understand the syntax for contructing regular expressions yet, can anybody help please?
I wanted to make one which catches all external links to sites which begin with the number 1 and also end with .org as this is a spam pattern I have been having repeated trouble with recently, but using |1*.org| has the unintended effect of blocking all .orgs
So I reverted to this:
$wgSpamRegex="/(phente|xanax|valium|geocities|casino|myflooring.org|display:none|-ambien|overflow:[ \t\n]*auto)/";
Cheers
I think |1[a-z.]*.org| should work, but I haven't tested it. The phrase "1*" actaully means "zero or more occurrences of the character 1".
You can search the Internet for help about Regular Expressions.
- -- #define Name RotemLiss #define Mail mailSTRUDELrotemlissDOTcom #define Site www.rotemliss.com
#define KeyFingerPrint 4AFD 8579 A449 4267 BED9 38E5 6EF8 5B1F EBDE 7AC0