fork download
  1. <?php
  2.  
  3. $sTest = "(kanych) Kurva Ggglo";
  4. preg_match("/\([^\)]*\)/", $sTest, $aMatches);
  5. $sResult = $aMatches[0];
  6.  
  7. var_dump($aMatches, $sResult);
  8.  
  9. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
array(1) {
  [0]=>
  string(8) "(kanych)"
}
string(8) "(kanych)"