I'm editing an old bookmarks.html file in Dreamweaver to prep it before I import the bookmarks back into Firefox. An example bookmark would look like this:
<DT><A href="http://isohunt.com/" ADD_DATE="1125111393" LAST_VISIT="1207867025" ICON="data:image/bmp;base64,Qk32AAAAAAAAAHYAAAAoAAAAEAAAABAAAAABAAQAAAAAAIAAAABNEAAATRAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AP8A/////////wD/////////AP////////8A/////////wD//M//zP//AP/8z//M//8A//zP/8z//wD//M//zP//AP/8z//M//8A//zMzMz//wD//MzMzP//AP/8z//M//8A//zP/8z//////M//zP/////8z//M//////zP/8z/" LAST_CHARSET="UTF-8" ID="rdf:#$mk2F01">isoHunt - IRC and Bit Torrent Search Engine</A>
What I want to do is remove the ICON parameter (in bold) and its associated value. This is the only portion of the tag that I need to find and then use the Replace function to replace it with nothing.
So far, here's the expression that I have come up with:
ICON=".*(?!")
This expression finds the ICON parameter just fine but doesn't stop until it finds the last double-quote before the carriage return. Basically, I need the expression to find ICON=" and then any letter or symbol except for the first double-quote that it encounters regardless of what follows (be it a space or the end of the tag).
Can someone point out what I'm doing wrong? I'm sure it's pretty simple but, I'm new to regexp. BTW, I'm using RegexBuddy to test.