So. I had a huge list of books that was to go up on a website I designed. The list included ISBNs, and I wanted to make every ISBN a link containing my Amazon affiliate code.
The list included the ISBNs in a convenient standard format: “ISBN 1234567890123.” All the entries looked something like this:
Dragonfly Books, 2008, c1996. LCCN 96012111. pbk., ISBN 9780375844515, $7.99. 1 vol. (unpaged) : col. Ill. ; 28 cm. LCCN 96012111, Grades 2-4.
So I did a little GREP homework and used TextWrangler to do the following:
What’s so neat about GREP is that I was able to place the ISBN in two places in the “Replace” box (the “\1” in the code): in the URL and in the visible text. Thanks, BBEdit GREP Tutorial.