usually we do
but i have match condition and need to get closest previous appearance of some info, i dont know how to do it with greedy matching, but i can do it if reverse string and condition before search. But reversing expensive operation. Can i iterate througth my string from end to begin? How? Thanks.Code:boost::sregex_iterator itrBeginPath(alltext.begin(), alltext.end(), patternPath);




Reply With Quote