I’ve got lot of different image URLs like these
I need to change them (I think with preg_replace), so that the content between the last two dots disappears.
So the links should be:
Note that there might be other dots in the URL. Only the content between the last two dots should be cleared.
Can you help me with that?
I’m thinking you’d need a pattern along these lines (completely untested):