src-highlite.git - src-highlite

index : src-highlite.git
src-highlite
summary refs log tree commit diff
path: root/src/check-regexp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check-regexp.cpp')
-rw-r--r--src/check-regexp.cpp 6
1 files changed, 4 insertions, 2 deletions
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)) {
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 12:15:23 +0000

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