claestw wrote
but wouldn't that match everything with "sidebar" in it? The sidebar page will always have the exact name "sidebar", so to filter it out, shouldn't we match for page IDs that matches exactly "sidebar", no more and no less, in whatever namespace it belongs to?
Yes that would match everything with sidebar in it? Like namespace1:sidebar oder namespace:nestednamespace:sidebar. However, it`s not completely accurate, this one would be better:
^.*?sidebar$