What’s the best way I can replace a random scale number on the end of a url so I can replace it with a different scale number?
Original Urls:
http://www.mydomain.com/picture/1/scale;240x350/
http://www.mydomain.com/picture/2/scale;340x500/
New Urls I Need:
http://www.mydomain.com/picture/1/scale;179x263/
http://www.mydomain.com/picture/2/scale;179x263/
Here is what I came up with which is just a shot in the dark for me:
$output = preg_replace("/\\/scale;.*/","/scale;179x263/",$url_string);