BCCOM-156: Updated how the first character of the regex string is accessed

This fix will allow the clientside regex functionality to work in IE7+