I'm replacing the 525x272 of the following url with 236x190.
http://www.website.com/wp-content/uploa ... 25x272.jpg
I'm using the following pattern but how should I modify it so it works when there are only two numbers or maybe four?
Code: Select all
preg_replace('/[0-9][0-9][0-9]x[0-9][0-9][0-9]/m', "236x190", $image['full'])