i have this string:
http://www.website.com/path/photo.jpg?resize=600%2C400
and i want to remove the part after the file type. With other words i want to get
http://www.website.com/path/photo.jpg
the file type that can exist are .jpg, .png, .gif
any idea how can i implement this?