3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = 'ZOOBLES ieterpjami(902486) CDX-GT560UI Blue ( CDXGT560UI.EUR ) Vaschetta Baby SPA(N109-U25/U25)'; //preg_match_all( '#\(\s*([\-\/\.\dA-Z]+)\s*\)#', $string, $matches ); preg_match_all( '#(\(([^)]*)\))\)*$#', $string, $matches ); var_dump( $matches );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> array(1) { [0]=> string(14) "(N109-U25/U25)" } [1]=> array(1) { [0]=> string(14) "(N109-U25/U25)" } [2]=> array(1) { [0]=> string(12) "N109-U25/U25" } }