Table of Contents Formatting - Wiki


I have created a table of contents on multiple pages within my Wiki and i would like to exclude more than one heading within each page. How can i do this?

I have been succesful is excluding one heading, but i am unsure how to exclude more than one. Do i seperate each word that i want to exclude?


1 answer

1 accepted

0 vote

Hi Matt,

In Confluence Table of Content Macro, the Exclude Heading allow you to specify the Regex on the Heading you wish to excluded. Using the Regex, you can exclude more than one heading. Here the regex pattern used in the Exclude Heading

Hope this helps!


Jing Hwa

I still cant seem to figure it out. If I wanted to excude the following two headings: Index and Restricted Pages. How would i type that in?

Hi Matt,

You can use a regex like this Index|Restricted Pages in your Exclude Heading. Heading with the same title as Index and Restricted Pages will be excluded from your TOC


Jing Hwa

Hi Matt,

Did you make sure that is no empty space in between the regex?

I tried - still not working. I typed exactly what you wrote above....

Glad I could help :).

It worked! Thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

230 views 6 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot