Sha256: bc08e929ba007d49378ac06c88b8d7e20540e5ac3b7619cbb8c050e665f256e0
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
#include <regex.h> #include <string> int main() { std::string str = "test0159"; regex_t re; int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB); if (ec != 0) { return ec; } int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0; regfree(&re); return ret; }
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simdjson-0.3.0 | vendor/simdjson/dependencies/benchmark/cmake/posix_regex.cpp |
simdjson-0.3.0 | vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/posix_regex.cpp |