title: Get text contained within the parentheses at the end of string
body: <p>Say I have this user list:</p>
  
  <pre><code>Michael (43)
  Peter (1) (143)
  Peter (2) (144)
  Daniel (12)
  </code></pre>
  
  <p>The number in the furthest right set of parentheses is the user number.</p>
  
  <p>I want to loop each user and get the highest user number in the list, which in this case would be <code>144</code>.
  How do I do this? I'm sure it can be done with some kind of regexp, but I have no idea how. My loop is simple:</p>
  
  <pre><code>$currentUserNO = 0;
  
  foreach ($users as $user) {
      $userNO = $user-&gt;NameUserNo; // NameUserNo is the string to be stripped! ex: "Peter (2) (144)" =&gt; 144
  
      if ($userNO &gt; $currentUserNO) {
          $currentUserNO = $userNO;
      }
  }
  
  echo "The next user will be added with the user number: " . $currentUserNO + 1;
  </code></pre>