I have a regular expression and a string. I need to find all the non-matches in the string is a regular expression and get the ranges in the string.
How can I do this?
#include <regex>
#include <string>
#include <iostream>
void printNonMatches(const std::regex& re, const std::string& str) {
const std::string& part;
size_t start;
size_t end;
/* get next non-match */
/* std::cout << part << " : " << start << ", " << end << std::endl; */
}