encfs/vendor/github.com/google/benchmark/cmake/std_regex.cpp
Valient Gough 35f7c4772b Add "gbench" from "https://github.com/google/benchmark.git@v1.2.0"
git-vendor-name: gbench
git-vendor-dir: vendor/github.com/google/benchmark
git-vendor-repository: https://github.com/google/benchmark.git
git-vendor-ref: v1.2.0
2017-08-06 22:36:13 -04:00

11 lines
259 B
C++

#include <regex>
#include <string>
int main() {
const std::string str = "test0159";
std::regex re;
re = std::regex("^[a-z]+[0-9]+$",
std::regex_constants::extended | std::regex_constants::nosubs);
return std::regex_search(str, re) ? 0 : -1;
}