19 Aug 19:29
[Boost.Regex] regex_basic subpatterns iterators
From: Mickael Wolff <mickael <at> lupusmic.org>
Subject: [Boost.Regex] regex_basic subpatterns iterators
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 17:30:20 GMT
Subject: [Boost.Regex] regex_basic subpatterns iterators
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 17:30:20 GMT
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 mailing list
(Continue reading)
RSS Feed