blob: 696f2a26bce02fbcec39ee1786c151400290b31e [file] [log] [blame]
Eric Fiselierb08d8b12016-07-19 23:07:031#include <regex>
2#include <string>
3int 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}
Louis Dionne5208ec52021-07-12 17:15:3410