[patch proposal] regex handling in XWiki core