Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6213: Escaping close parentheses doesn't work in boost::regex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-05 17:11:39
#6213: Escaping close parentheses doesn't work in boost::regex
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by steven_watanabe):
It seems to work with MSVC 10 with the trunk:
{{{
#!c++
#include <string>
#include <boost/regex.hpp>
void f(const std::string& val)
{
boost::regex expr1("(.*)\\((.*)\\)");
boost::cmatch matches;
if(boost::regex_match(val.c_str(), matches, expr1))
{
std::cout << "matched" << std::endl;
}
}
int main () {
f("test(test)");
}
}}}
I don't see any obvious recent changes that would affect this.
Do you have an example string that fails to match?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6213#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC