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):
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.