With the Search and replace function it is possible to search through the entire space or page for a certain text and replace it with a new one.
The Search and replace function can be found:
- In the edit menu
- In the toolbar
- By pressing S
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.
For replacing a specific text content select a space or a page and open the popup window in the described way above.
Be careful when unchecking the "Respect XML Tags". This might break your pages if misused.
Check the example at the bottom of this page.
The following options can be used:
|Simple text or regex||It can be searched via simple text content or regular expression|
|Replace by||Searched text gets replaced by this content|
|Respect XML tags|
|Change||The following options can be changed. If one of this gets unchecked it will not be browsed.|
How the content will be searched (recursive or not) and if blog posts should be included
It can either be searched for content, previewed what changes will be done or directly replaced (this option cannot be undone).
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" )
This is how I want it to be replaced:
But what will not work, is searching for:
And replacing with: