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