-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Description
static void Test() {
std::string txt = "\n\n\n\n\n\n"
"Network Working Group J. Rosenberg\n"
"Request for Comments: 3261 dynamicsoft\n"
"Obsoletes: 2543 H. Schulzrinne\n"
"Category: Standards Track Columbia U.\n"
" G. Camarillo\n"
"\n";
std::smatch result;
std::regex rex("(?:.+\n)+\n");
while (std::regex_search(txt, result, rex)) {
for (const auto& str : result) {
std::cout << str << std::endl;
}
txt = result.suffix();
}
}
int main(int argc, char* argv[]) { Test(); }
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
