fix regexes for wiki rules