xref: /aosp_15_r20/external/libcxx/utils/google-benchmark/cmake/std_regex.cpp (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1 #include <regex>
2 #include <string>
main()3 int main() {
4   const std::string str = "test0159";
5   std::regex re;
6   re = std::regex("^[a-z]+[0-9]+$",
7        std::regex_constants::extended | std::regex_constants::nosubs);
8   return std::regex_search(str, re) ? 0 : -1;
9 }
10 
11