8 RegMatch::RegMatch(const string &str, const GroupArray &g):
11 for(GroupArray::iterator i=groups.begin(); i!=groups.end(); ++i)
14 i->length = i->end-i->begin;
15 i->str = str.substr(i->begin, i->length);
19 const RegMatch::Group &RegMatch::group(unsigned i) const
22 throw out_of_range("RegMatch::group");