Remove unnecessary dependency on boost::regex