fork download
  1. <?php
  2.  
  3. $re = '/(?!.*\()[а-я]+/iu';
  4. $str = 'Сочи (Адлер) (Россия)';
  5. preg_match($re, $str, $matches);
  6. var_dump($matches);
Success #stdin #stdout 0.02s 26056KB
stdin
Standard input is empty
stdout
array(1) {
  [0]=>
  string(12) "Россия"
}