> "Matching" in C++?

"Matching" in C++?

Posted at: 2014-12-18 
This is one of those RTFM moments...

http://msdn.microsoft.com/en-us/library/...

but the answer is B

edit: Also make sure you understand that this is not standard C++, it's using Microsoft .net stuff.

Need some help with matching in this problem. Can anyone tell me the answer?

Given the following code segment, which can represent the subsequent matches after the first match if any?

String^ str = "Can you find the right 'tech' word?";

Match^ m = Regex::Match(str, "\\b[at]\\w+");



A. m = m->Match();



B. m = m->NextMatch();



C. m = m->MatchNext();



D. m = m->Next();