How to use the preg_replace function to replace
/c83403.403/
Example: https://startimage.ca/c83403.403/ahmedmynewpix.jpg
another example: https://startimage.ca/c2.3403.403/ahmedmynewpix2.jpg
It always start with /c..../ I want to replace that with ""
I am trying the following but not working $str = '/c..../'; $str = preg_replace('/+[0-9]', '', $str);