3v4l.org

run code in 300+ 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:
24.16 ms | 404 KiB | 5 Q