Boost logo

Boost Users :

From: Mickael Wolff (mickael_at_[hidden])
Date: 2008-08-19 13:30:20


  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>

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net