<?php $str = '05/21/2018 ghijkl 06/12/2018 mnopqrst'; $result = preg_split('@(\b\d{1,2}/\d{1,2}/\d{4}\b)@', $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); var_dump($result);
You have javascript disabled. You will not be able to edit any code.