I am looking for a placeholder and replace it with a text string. This works fine with findAllString and replace. The problem is that the replace does it over the entire document and I need to replace each placeholder found in the document with a different value, even though the name of the placeholder is the same. These placeholders can be in different paragraphs but they can also be in the same paragraph.
Example:
Test1 <<YYYY>>, Test2 <<YYYY>>, Test3 <<YYYY>>
In this example, my placeholder to search for is <<AAAA>>, but the value to put in its place must be different in each one.
Example of desired result:
Test1 11111, Test2 22222, Test3 33333