As I can do to remove this type of dates from a string in PHP
En progreso Sin resolver 14/jul/16 17/jul/16 19/jul/16 12:00 PM 12 h Acciones
I want to extract only this: 19/jul/16 12:00 PM
try this :
$pattern = '#\d{1,2}/\w+/\d{1,2}\s\d{1,2}:\d{1,2}\s[AP]M#';
$string = ' df progreso sin resolver 14/jul/16 17/jul/16 19/jul/16 12:00 PM 12 h Acciones';
preg_match($pattern , $string , $matches);
print_r($matches);
result will be :
Array
(
[0] => 19/jul/16 12:00 PM
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments