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) Sweet Dreams Hooded Towel W/PW/B( ASC-STAB01-AS-WH )'; //preg_match_all( '#\(\s*([\-\/\.\dA-Z]+)\s*\)#', $string, $matches ); preg_match_all( '#(\([^)]*\))\)*$#', $string, $matches ); var_dump( $matches );
Output for 4.3.0 - 7.1.0
array(2) { [0]=> array(1) { [0]=> string(20) "( ASC-STAB01-AS-WH )" } [1]=> array(1) { [0]=> string(20) "( ASC-STAB01-AS-WH )" } }