How can I automatically remove all of the anchor macros post- MS-Word import?

I just imported an MS Word doc. Looks pretty good, but there are as many as four anchor macros in front of every heading, with IDs like "_Toc211850156".

If this was Confluence 3.x, I'd view source, do a search/replace in my favorite text editor, and be done, but I'm in Confluence 4.x OnDemand so I'm clueless on how to automate the process to remove what are literally thousands of anchor tags.

What can I do?


Update 2013-Oct-31 :

3 answers

Hi Tim,

I think that _tocxxxxxxx means that the anchor created by heading settings in MS Word by a Table of Content. I don't think that you can delete them automatically.

You can fix the document in MS Worn and re-import or use Office macros to embed an office document into a confluence page.

I hope this helps.



Tim, did you come up with any solution for removing the anchors other than editing the Word document? There must be a way via the Source editor... I just can't figure it out!

@Susan - I believe I ended up pasting into my desktop editor (Sublime) as text *first* and then pasting into Confluence.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

783 views 33 5
Join discussion

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