Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72974 - trunk/tools/auto_index/src
From: john_at_[hidden]
Date: 2011-07-08 13:50:12


Author: johnmaddock
Date: 2011-07-08 13:50:11 EDT (Fri, 08 Jul 2011)
New Revision: 72974
URL: http://svn.boost.org/trac/boost/changeset/72974

Log:
Fix regular expressions used.
Text files modified:
   trunk/tools/auto_index/src/index_generator.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/tools/auto_index/src/index_generator.cpp
==============================================================================
--- trunk/tools/auto_index/src/index_generator.cpp (original)
+++ trunk/tools/auto_index/src/index_generator.cpp 2011-07-08 13:50:11 EDT (Fri, 08 Jul 2011)
@@ -150,7 +150,7 @@
 boost::regex make_primary_key_matcher(const std::string& s)
 {
    static const boost::regex e("[-_[:space:]]+|([.\\[{}()\\*+?|^$])");
- static const char* format = "(1?\\\\$1:[-_[:space:]]+)";
+ static const char* format = "(?1\\\\$1:[-_[:space:]]+)";
    return boost::regex(regex_replace(s, e, format, boost::regex_constants::format_all), boost::regex::icase|boost::regex::perl);
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk