Good Morning,
I have an error in my preg_match. My string is Cat-115/Ads-733-49
and i want find last numbers after dash Cat-115/Ads-733-
and print that
Could you please help me fix this? I am sure, it some basic error, so sorry for that...
My Code :
$destination = "Cat-115/Ads-733-49";
preg_match('/Ads-\K\d+/', $destination,$m);
$result= $m[0];
i need to result in this case is 49
Thanks!