From 682949c1cc710bab006a817108f457caaaa8f119 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 12 Sep 2022 12:34:12 +0200 Subject: [PATCH] update doc --- src/py_regex_replace/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py_regex_replace/main.py b/src/py_regex_replace/main.py index a5f5877..b553b36 100755 --- a/src/py_regex_replace/main.py +++ b/src/py_regex_replace/main.py @@ -17,7 +17,7 @@ def main(): # https://docs.python.org/3/library/re.html#re.findall # Return all non-overlapping matches of pattern in string, as a list of strings or tuples. - # The string is scanned left-to-right, and matches are returned in the order found. + # The string is scanned left-to-right, and matches are returned in order. matches = re.findall(pattern, string, flags=re.MULTILINE) if len(matches) != count: print(f'[ERROR] Expected {count} matches of pattern in string, but got {len(matches)}.')