On Apr 11, 2012 11:01 PM, "Antoine Musso" <hashar+wmf(a)free.fr> wrote:
const EXT_URL_REGEX =
'/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+
)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?
([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/';
ZOMG. Anyway, what I'd do if I had a
MediaWiki clone handy is look through
Sanitizer.php to see if there's anything in there that handles URLs.
Roan