<?php $re = '/\(\K[^)]+(?=\))/'; $str = 'Updated by Carewina Almonte (04/02/2018 21:58:32)'; preg_match($re, $str, $matches); $dateTime = new DateTime($matches[0]); if ($dateTime !== false) { echo $dateTime->format('H:i:s'); }
You have javascript disabled. You will not be able to edit any code.