Converts String::replace regex function to C
travisplexer: pr-143-arm travis ci test