diff --git a/syntax.htm b/syntax.htm index f6b18f8f..e89ea3d7 100644 --- a/syntax.htm +++ b/syntax.htm @@ -134,10 +134,9 @@ the expression "(ab)*" would match all of the string "ababab". The matching algorithms regex_match and regex_search each -take an instance of match_results +take an instance of match_results that reports what caused the match, on exit from these functions -the match_results +the match_results contains information both on what the whole expression matched and on what each sub-expression matched. In the example above match_results[1] would contain a pair of iterators denoting the