I have following image url:
http://www.example.org/wp-content/blogs.dir/29/files/2013/02/Personalized-Results-Asterisk-600x417.png
Here url containing by default resolution i.e. 600x417.png in it. I want to remove this resolution from this image url.
Final output of image url should be like this :
http://www.example.org/wp-content/blogs.dir/29/files/2013/02/Personalized-Results-Asterisk.png
How can I do this?
preg_replacewith the pattern/\-*(\d+)x(\d+)/for the answer below shall do the trick ^^