Greetings.
Please tell me with a template for a replace ... there are links:
/upload/blablabla/mainbla/bla/NeobyichnoeiskusstvoFingerpainting.Slon3232.jpg /upload/blablabla/mainbla/bla1/RSRRSRRyoSSSS.png need to make them
/upload/blablabla/mainbla/bla/min/NeobyichnoeiskusstvoFingerpainting.Slon3232_min.jpg /upload/blablabla/mainbla/bla1/min/RSRRSRRyoSSSS_min.png variant preg_replace("/\.(jpg|jpeg|png|gif)/i","_min.\\1",$str); changes only the file name, and how would you add the min folder in front of the name? :) thank you in advance.