Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$text = 'Комментарий к заказу: 2
Дата доставки: 19.10.2022 09:30';
$preg = '#(\d{2}).(\d{2}).(\d{4})#isu';
echo preg_replace_callback($preg,
function($matches) {
return $matches[0]; // дата полностью
}
, $text);