title: Replace all matches in 1 iteration using regular expressions
body: <p>Is it possible to search different patterns and replace the matchings in 1 iteration?</p>
  
  <p>For example, if I have the string</p>
  
  <pre><code>"Hey {Apple}, where is {Carrots|Peas|Cucumber}?"
  </code></pre>
  
  <p>Is it possible to replace everything inside the curly braces in 1 iteration so that it looks like:</p>
  
  <pre><code>"Hey fruit, where is vegetables?
  </code></pre>
  
  <p>The reason I ask is because my current implementation first searches all patterns that only have one value inside the curly braces (1-iteration), and then it searches for the curly braces with 3 values right after (2-iterations), thus taking x-amount of iterations, where x = "{}".</p>
  
  <p>Thanks guys, I hope this makes sense.</p>