On 03/05/06, Tony Bowden wikimedia@tmtm.com wrote:
On Wed, May 03, 2006 at 12:13:54AM +0200, Tels wrote:
You're overwriting the value of the variable each time, so the last is the only one which takes effect. Try something like $wgSpamRegex = '/(display\s*:\s*none|overflow\s*:\s*auto)/';
We need a FAQ entry for that one _fast_.
What about allowing this to be an array? For many people this will be easier than writing a complicated regex that combines all the patterns they want to match.
Could do. See also http://www.mediawiki.org/wiki/Help:FAQ#How_do_I_use_.24wgSpamRegex_to_block_... where I wrote up an example of using arrays to make the whole thing easier to handle.
Rob Church