Re: [Boost-bugs] [Boost C++ Libraries] #5852: boost::xpressive::sregex::compile

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5852: boost::xpressive::sregex::compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-02 22:09:40


#5852: boost::xpressive::sregex::compile
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: eric_niebler
      Type: Bugs | Status: closed
 Milestone: Boost 1.48.0 | Component: xpressive
   Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords: smatch compile
---------------------------+------------------------------------------------
Changes (by eric_niebler):

  * status: new => closed
  * resolution: => invalid

Comment:

 You are using the wrong algorithm. {{{regex_match}}} only succeeds if it
 consumes the whole input, which the first pattern does. {{{regex_search}}}
 will find the pattern anywhere in the input string. You should use
 {{{regex_search}}}. (And read the docs. ;-))

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5852#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:07 UTC