---
title: "Anonymize content in a Confluence page with regex using Confluence CLI"
canonical: "https://support.appfire.com/space/SUPPORT/89145701/Anonymize%20content%20in%20a%20Confluence%20page%20with%20regex%20using%20Confluence%20CLI"
format: markdown
---
This article explains how to anonymize content in a Confluence page with regex using the app, *Confluence Command Line Interface.*

## Instructions

<span style="color: #333333">Use the </span>**[m](https://appfire.atlassian.net/wiki/spaces/CSOAP/pages/68455746/modifyPage)****[odifyPage](https://appfire.atlassian.net/wiki/spaces/CSOAP/pages/68455746/modifyPage)**<span style="color: #333333"> action with the</span><span style="color: #333333"> </span>*space*<span style="color: #333333"> and </span>*title*<span style="color: #333333"> parameters to modify the page. Here are the details:</span>

1. <span style="color: #000000">Ensure that you update the acli.properties file with the server, user, and password details.</span>  
<span style="color: #000000"> </span>
  - **<span style="color: #000000">Option 1: </span>**  
<span style="color: #000000">To change each and every content on the confluence page to a specific value then use the following action (</span><span style="color: #000000">Ex: Below action changes all the content to X)</span><span style="color: #000000">: </span>
    The regex conversion takes place based on the storage format of the Confluence page. The data displayed on the page cannot be preserved using the regex.   
Replace the space name with the intended name of the space in the above syntax. (Here in the example the space name and the space key is the same i.e, *CLI*)
  - **<span style="color: #000000">Option 2:</span>**  
To change a specific content on the confluence page then use the below action:
  <span style="color: #000000">The result of the given action is as follows:</span>
  - **<span style="color: #000000">Output on the terminal:</span>**
  - **<span style="color: #000000">Output in Confluence:</span>**  
  
> Macro (inline-media-image)

> ℹ️ - <span style="color: #000000">*It is highly recommended that you test the actions on a test instance before executing it in the production environment. *</span>
> ℹ️ - <span style="color: #000000">*As a precautionary measure, take a backup of the instance before executing the command.*</span>