fork(2) download
  1. <?php
  2.  
  3. $s = "qweqeqe (qweqwe) AASD 213,21 ( -1201,77 EUR )";
  4. preg_match_all('/(?:\(|(?!^)\G)[^()]*?([-+]?\d+(?:,\d+)?)(?=[^()]*\))/', $s, $matches);
  5. print_r($matches[1]);
  6.  
Success #stdin #stdout 0.06s 52480KB
stdin
Standard input is empty
stdout
Array
(
    [0] => -1201,77
)