test.cc
#include <cctype> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string> | |
#include <regex> | |
int main() { | |
std::string str("abcdefg"); | |
std::regex pattern(".+"); | |
bool result = std::regex_match(str, pattern); | |
if (!result) { | |
abort(); | |
} | |
for (auto &c : str) { | |
printf("%d\n", c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment