Board Thread:Code Review/@comment-28274335-20160422125014/@comment-11733175-20160423185101

Unless you have a syntax error (which you can quickly diagnose with something like jshint), you probably have a problem with your regex.

I'd suggest using some debugging calls with  which outputs whatever you want to your JS console. Break your code down to make sure each part of it works and then slowly add a bit more until your problem either disappears or you discover what it was in the first place.