I have a String that looks like this:
downloadUrl = "https://example.com/uploads/images/quotes/hi/webp/dard-status-shayari-68854.webp";
It is basically a URL address. I'm looking to replace webp
with jpg
and .webp
with .jpeg
I need output like the below:
https://example.com/uploads/images/quotes/hi/jpg/dard-status-shayari-68854.jpeg
I tried the solution given here but it's not working for me.