3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(.*?\s.*?\s)/'; $str = 'First example from this part 10 t/m 16 it has to be removed'; preg_match($re, $str, $match); echo $match[1];

preferences:
107.06 ms | 1513 KiB | 5 Q