after boost::regex_search(start, end, what, pattern)
I can find start position of full match in search string by calling what.position()
.
How can I find those positions for submatches?
I need to have code like this:
if(boost::regex_search(start, end, what, pat))
{
int len = what["namedGroup"].length();
int pos = what["namedGroup"].position();
}