replace words with different values from sentences
<p>I have one sentence like this:</p>

<pre><code>{pattern} test {pattern} how r u {pattern}
</code></pre>

<p>How can I replace <code>{pattern}</code> with different values like </p>

<pre><code>{AAA} test {BBB} how r u {CCC}
</code></pre>
