You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

With the Search and Replace function you can search through entire spaces for certain text content, and replace it with a new one.

This function can be useful when copying spaces, for example when content has a lot of references to old content, like links, comments, names, etc.


The new button is active when selecting spaces and/or pages:

and it opens a pop-up window with the available search&replace options:

Options explained

  • available search options: simple text or regex
  • Respect XML tags
    • it means that the searching will not break the XML tags, and will replace only the visible content on the page
    • use this function carefully, if you don't understand Confluences XML structure, because it might break your pages

Careful when unchecking this checkbox, this might break your pages if wrongly used!

  • Content choice - here you can select which types of content should be changed
    • names of spaces, spaces description, pages names, page content and comments
  • Content search - how the content will be searched (recursive or not) and if blog posts should be included


Now you can either search for content, preview what the changes will do or directly replace the content (this option cannot be undone).


Example of replacing content when "Respect XML tags" checkbox is unchecked

After copying a space, I want all my links in the new space to point to my new space. This will not happen automatically, so I can use the "Search and replace" functionality from Space Admin.

This is how the tag looks like at the moment (to get the page in this format, I have to click on the page options "View Storage Format" ).

<ri:page ri:space-key="NS" ri:content-title="New space Home" /> //original tag

This is how I want it to be replaced

<ri:page ri:space-key="AS" ri:content-title="Another space Home" /> //updated tag

but what will not work, is searching for

<ri:page ri:space-key="NS"

and replacing with 

<ri:page ri:space-key="AS"

because in this way, I will break Confluences XML structure.