X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fregex.cpp;h=5307c6990286ba373291281fb4ee230ff81d2d07;hb=HEAD;hp=c62405614525dd85b32a73361bd78133e03ef29f;hpb=c2530205a67e5d0b341827287151978652b91aaa;p=libs%2Fcore.git diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index c624056..5307c69 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include "format.h" #include "regex.h" @@ -56,7 +57,6 @@ string bad_regex::make_where(const string &e, const string::const_iterator &i) Regex::Regex(const string &expr) { - n_groups = 0; auto iter = expr.begin(); code = compile(expr, iter, n_groups, false); ++n_groups; @@ -478,7 +478,7 @@ bool Regex::run(const string &str, const string::const_iterator &begin, vector