"Alai" <AlaiWiki(a)gmail.com> wrote in message
news:loom.20070118T080426-624@post.gmane.org...
Simetrical <Simetrical+wikitech@...> writes:
> The legal title characters, by default, are "
> %!\"$&'()*,\\-.\\/0-9:;=? <at> A-Z\\\\^_`a-z~\\x80-\\xFF+".
Therefore,
a
> reasonable PCRE regex (with no string escaping of
backslashes et al)
> might be:
>
> /\[\[Category:([ %!"$&'()*,\-.\/0-9:;=? <at>
A-Z\\^_`a-z~\x80-\xFF+]+)\]\]/i
Note that one also needs to cope with leading and trailing spaces, and the
"Category" is case-insensitive. So probably something more like:
\[\[ *[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy] *: * ...
The /i at the end of the regex makes it case insensitive.
- Mark Clements (HappyDog)