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