- I'm trying to use SED and REGEX to append any instances of .png, .gif or .jpg within an html document with a cache busting URL. I've put together this command, but it doesn't appear to be finding any instances.
- sed -i '.old' 's/\.(?:jpg|gif|png)/&?build=12345/g' index.html
- Can anyone offer some advice?