As noted in a previous post, I’ve revamped my List-O-Books™ pages to include IndieBound affiliate links, instead of unaffiliated links to Amazon. Creating these list pages became more difficult via Amazon, IndieBound has a good affiliate program, and philosophically I prefer to support independent book stores. That was my rational behind changing the List-o-Books pages. The remainder of this post deals with how I implemented those changes.
I normally don’t write technical articles; the depth of my technical knowledge is surpassed many times over if you scan the web looking for tech articles. But, the process of revamping these pages may be useful to others who want to switch to IndieBound links on their blogs, and it is a good, practical introduction to regular expressions, an handy tool in a blogger’s toolbox. If this doesn’t interest you, please, check out the rest of my site, skipping what will otherwise a very boring post.
Note: Writing this article was a tedious exercise, due mostly to my inexperience using the somewhat limited code editing capabilities through WordPress.com. If you happen to use the regular expression I annotate herein and find an error, please let me know. I’d appreciate the opportunity to hear your feedback.