---
title: "How to make global changes to comments"
canonical: "https://support.appfire.com/space/SUPPORT/89147290/How%20to%20make%20global%20changes%20to%20comments"
format: markdown
---
# Description

[How to globally search and modify content](https://appfire.atlassian.net/wiki/spaces/SUPPORT/pages/89147318) describes how to change page content. This describes how to make global changes to comments. On [5.3](https://appfire.atlassian.net/wiki/spaces/ACLI/pages/60560192), this can be done without scripting. This page will show you the techniques for how this can be done. 

> ✅ **Be specific**
> ✅ 
> ✅ Whenever you use find replace logic, be as specific as possible in defining your find string so that you don't get unexpected replacements! Especially important when using **regular expressions**. Always test your regular expressions!

# Requirements

- Confluence 5.7 and above
- CLI [5.3](https://appfire.atlassian.net/wiki/spaces/ACLI/pages/60560192) or above

# Details

- We use the **@commentBody@** special value to indicate that we want the find replace logic to be applied to the existing comment body to set the updated comment. Note that @commentBody@ must be the only text in the comment parameter.
- We use the **findReplace** parameter in this simple case. You can also use the **findReplaceRegex** parameter similarly for more complex cases.


```
--action runFromContentList --cql "space = ACLI and type = comment" --common "--action updateComment --id @contentId@ --comment @contentBody@ --findReplace \"old.examplegear.com:new.examplegear.com\" "
```