Re: [Unreal-users] spam list question on regular expresions
Status: Beta
Brought to you by:
wildchild
|
From: Bram M. (Syzop) <sy...@vu...> - 2004-11-24 03:20:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, droolin wrote: > My question is this: When we define the regex in the spam filter, can we > specify flags/switch's that turns off case sensitivity???? Like perl has? Yup, since Unreal3.2.2 (which uses TRE 0.7.0) this is possible. You can use (?-i) to turn off case sensitivity, and (?i) to turn it on again... eg: (?-i)test(?i)ing would match: testing testINg but not: teSTING TESTING Regards, Syzop. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBo/fi4cPWX+btKqIRAgM+AKC3n/ZuSNpWnfmW5V27kB5aT1xvfgCeMx1k MUa5CDMHn/0u8aoigG8jJDk= =Spok -----END PGP SIGNATURE----- |