Regex Popup Window
This is a quick post to show you how to open up external website links within a pop-up window (without adding extra non semantic mark-up to your HTML code).
In the past I’ve heard a lot of people talk about adding either custom attributes or using existing attributes such as rel as a hook for your JavaScript code to find links that should open in a pop-up window. I disagree, and suggest using Regular Expressions (regexes) along with some procedural code to help figure this out for you (it will save you the time and hassle of adding this extra mark-up yourself).