See article, http://blog.geekingfrog.com/reuse-javascript-regexp-global-flag-gotcha/ Need to apply fix to accommodate for this reuse that is done of our RegExps