update doc

This commit is contained in:
Daniel Langbein 2022-09-12 12:34:12 +02:00
parent 282c9ffa72
commit 682949c1cc

View File

@ -17,7 +17,7 @@ def main():
# https://docs.python.org/3/library/re.html#re.findall # 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. # 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) matches = re.findall(pattern, string, flags=re.MULTILINE)
if len(matches) != count: if len(matches) != count:
print(f'[ERROR] Expected {count} matches of pattern in string, but got {len(matches)}.') print(f'[ERROR] Expected {count} matches of pattern in string, but got {len(matches)}.')