Quick PHP code snippet to extract an Amazon product ASIN code or ISBN number from any Amazon US product URL. Works via a regular expression and the “preg_match” function.
While working in the "trenches" of software development, I create and discover awesome stuff on a daily basis, but there's hardly ever enough time to properly articulate and present my findings in full blog post format. So I often end up with hundreds of draft articles - most of which never get published at all. I created this category as a place to quickly dump such code snippets and "draft" ideas in their raw (or almost raw) format.