)/i', $text, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($lines as &$line) { if ($line === '' || preg_match('/^