3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pattern = "/\B,\B/"; $string = "(y3,x3),(r4,t4),(r5,t5)"; $output = preg_split($pattern, $string); print_r($output);
Output for 4.3.0 - 7.1.0
Array ( [0] => (y3,x3) [1] => (r4,t4) [2] => (r5,t5) )