
19 Aug
2008
19 Aug
'08
5:30 p.m.
Hi, I would like know if they are some method I missed to point parenthesis expression in basic_regex. For example, I would like to write something like this : === 8< === std::pair<std::string::iterator, std::string::iterator> mark ; boost::regex re("(\w+)") ; if(re.mark_count() == 2) { first_mark.first = re.marks[1].begin() ; first_mark.second = re.marks[1].end() ; } === 8< === My current solution is to do a regex on the regex, but I guess boost::regex did the work yet. Greetings, Mickaël. PS.: please apologize my english, I'm French. -- Mickaël Wolff aka Lupus Michaelis Racine <http://lupusmic.org> Blog <http://blog.lupusmic.org>