I try to extract dd-mmm-yyyy
in PHP, but it's return blank array.
<?php
$reg = "/^[01][0-9]-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\d{4}$/";
$test = 'Composed by super, user123 to super,user123 on 31-Mar-2020 11:29 with';
preg_match( $reg, $test, $matches, PREG_OFFSET_CAPTURE);
print_r($matches);
?>
any idea ?