update regex test count + get regex.exec index outside of the loop
travisplexer: pr-485-osx travis ci test