author | Lorenzo Bettini <bettini@dsi.unifi.it> | 2007年09月18日 13:21:11 +0000 |
---|---|---|
committer | Lorenzo Bettini <bettini@dsi.unifi.it> | 2007年09月18日 13:21:11 +0000 |
commit | 3b66a4df70cab6b25e410841bef6fd64d839ca5b (patch) | |
tree | a30b2e8cdbde1928d77bdbe36add08843fcf4eb7 /src/check-regexp.cpp | |
parent | e9ea18fdc4f4f57b9ab8c9a4c6c182b0a1919b07 (diff) | |
download | src-highlite-3b66a4df70cab6b25e410841bef6fd64d839ca5b.tar.gz |
-rw-r--r-- | src/check-regexp.cpp | 6 |
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)) { |