I am learning regex and am looking to search a url for any possible image extension (jpg, jpeg, png, gif .. etc) AND if the file extension of the URL is an image.
I want to replace any %20 or spaces with plus signs +
How can this be done?
www.test.com/this/is/an/image&20with%20spaces.jpg
www.test.com/this/is/an/image+with+spaces.jpg
You’ll have to do this in two lines, the way I see it.