title: preg replace specific character inside ()
body: <p>How I can replace character <code>*</code> only inside <code>()</code> with character <code>-</code>?</p>
  
  <hr>
  
  <p>For example:</p>
  
  <pre><code>$x="AUDI A4 Avant (8D5* B5)* A4 (8D2* B5)* A6 Avant (4A* C4)* A6 Avant (4B5* C5)* A6 (4A* C4)*A6 (4B2* C5)* AUDI (FAW) A6L Stufenheck (4B5* C5)* VW PASSAT Variant (3B5)* PASSAT (3B2)";
  </code></pre>
  
  <p>Output for <code>$x</code> would return</p>
  
  <pre><code>$x="AUDI A4 Avant (8D5- B5)*A4 (8D2- B5)*A6 Avant (4A- C4)*A6 Avant (4B5- C5)*A6 (4A- C4)*A6 (4B2- C5)*AUDI (FAW) A6L Stufenheck (4B5- C5)*VW PASSAT Variant (3B5)*PASSAT (3B2)";
  </code></pre>