title: RegEx pattern to match a string between two characters, but exclude the characters
body: <p>Greetings all,</p>
  
  <p>I have yet another RegEx question.  I have done hours of searching but apparently I have missed the one key article I need.</p>
  
  <p>I need to use preg_match() in PHP to match a string that is between parenthesis, but NOT have the parenthesis show up in the result.  I have seen examples of similar issues, but I believe my problem is different because it's actually parenthesis that I am dealing with, with is a meta character in RegEx.  Any merit to that?</p>
  
  <p>Anyways...</p>
  
  <p>String is:</p>
  
  <pre><code>     "200 result=1 (SIP/100-00000033)"
  </code></pre>
  
  <p>Current code is:</p>
  
  <pre><code>preg_match("/\((.*)\)/s", $res, $matches);
  </code></pre>
  
  <p>$matches[0] becomes:</p>
  
  <pre><code>     "(SIP/100-00000033)"
  </code></pre>
  
  <p>What I WANT is:</p>
  
  <pre><code>     "SIP/100-00000033"
  </code></pre>
  
  <p>I apologize because I'm sure this is VERY simple but I'm just not grasping it.  Would anyone care to educate me?</p>
  
  <p>Thank you in advance!!</p>