title: Replace content between two tags
body: <p>I want to replace all content between <code>(</code> and <code>)</code>, using php.</p>
  
  <p>my string:</p>
  
  <pre><code>$string = "This is a (string)";
  </code></pre>
  
  <p>the required output is:</p>
  
  <pre><code>$string = "This is a";
  </code></pre>
  
  <p>my code doesn't works:</p>
  
  <pre><code>$string = "This is a (string)";
  $search = "/[^(](.*)[^)]/";
  $string = preg_replace($search, "", $string);
  echo $string;  // output is ")"
  </code></pre>