title: PHP - Regex to remove the string between parenthesis
body: <p>I'm trying to split a filename into 3 parts here.</p>
  
  <p>Example: Artist - Title ( Mix ) or Artist - Title [ Mix ]</p>
  
  <p>My code so far.</p>
  
  <pre><code>preg_match('/^(.*) - (.*)\.mp3$/', $mp3, $matches);
  $artist = $matches[1];
  $title = $matches[2];
  echo "File: $mp3" . "Artist: $artist" . "\n" . "Title: $title" . "&lt;br /&gt;";
  </code></pre>
  
  <p>This is getting me the Artist and the Title. The problem I have is that Mix is either between () or [ ]. I'm not sure how to modify my regex in order to capture that part.</p>