= Description = The page_*_regex used since moin 1.7 match too much. E.g. if you use: {{{ ---- [[CategoryDVDQuality]] }}} Then the default page_category_regex will match on `CategoryDVDQuality]]`! For xapian search, exactly this will be put into index, not `CategoryDVDQuality` as expected. == Component selection == cfg.page_*_regex == Details == || '''!MoinMoin Version''' || 1.7, 1.8 with default regexes || || '''OS and Version''' || any || || '''Python Version''' || any || || '''Server Setup''' || any || || '''Server Details''' || || || '''Language you are using the wiki in''' (set in the browser/UserPreferences) || en || == Workaround == You can easily fix this by configuring better regexes in your wiki config. = Discussion = This bug is mainly for searching better default regexes, please add your suggestion below. I am using: {{{#!python page_category_regex = ur'(?PCategory(?P(?!Template)\w+))' }}} If the regexes are compiled with the Unicode or Locale flag then `\w` will match more than just the basic ascii alphanumeric characters--see [[http://docs.python.org/library/re.html#regular-expression-syntax|ref]] for details. So a suitable default for a future version of MoinMoin may look something like: `[\w\-]`. -- SamMorris <> = Plan = * Priority: * Assigned to: * Status: ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBug