Quick Tip: Testing if a String Matches a Regex in JavaScript - SitePoint