Re: [Boost-bugs] [Boost C++ Libraries] #3513: regex_match very slow example

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3513: regex_match very slow example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-30 15:36:57

#3513: regex_match very slow example
  Reporter: Fernando Pelliccioni <fpelliccioni@…> | Owner: eric_niebler
      Type: Support Requests | Status: closed
 Milestone: Boost 1.41.0 | Component: xpressive
   Version: Boost 1.40.0 | Severity: Problem
Resolution: invalid | Keywords:
Changes (by eric_niebler):

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


 Your dynamic regex is slow because you are needlessly using nested
 quantifiers in two places. The regex begins and ends with
 "(?:.*\\r?\\n)*". This case is explicitly called out in xpressive's docs
 as a common pitfall. Please read this:

 Your static regex does not use nested quantifiers. That explains the

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC