This article explains how to remove a specific word(s) on the page through Regex using Confluence CLI.
Instructions
Use modifyPage action with the space and title parameters to modify the page. Here are the details:
Sample confluence page with © word(s).
Regex for this line.© ABCD - All rights reserved.
Is
[© ABCD\s\-\sAll rights reserved\.]
Ensure that the CLI client file (acli.properties) is updated with the required information. Execute the CLI action:
--action modifyPage --space "ZCLI" --title "CLI Page" --findReplaceRegex "© ABCD\s\-\sAll rights reserved\.:"
- Here is the final Confluence page.
- It is recommended to run the action in a test environment before running in production.