From 3b66a4df70cab6b25e410841bef6fd64d839ca5b Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: 2007年9月18日 13:21:11 +0000 Subject: release 2.8 --- src/check-regexp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/check-regexp.cpp') diff --git a/src/check-regexp.cpp b/src/check-regexp.cpp index 1808381..26eacbc 100644 --- a/src/check-regexp.cpp +++ b/src/check-regexp.cpp @@ -3,7 +3,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -82,8 +82,10 @@ int main(int argc, char * argv[]) { flags = boost::match_default; cout << "\nsearching : " << tomatch << endl; - cout << "for the regexp : " << regex << endl; + cout << "for the regexp : " << regex << endl; + cout << "num of subexps : " << regex.mark_count() << endl; + int num_of_matches = 0; while (boost::regex_search(start, end, what, regex, flags)) { -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /