mirror of
https://codeberg.org/privacy1st/py-regex-replace
synced 2024-12-23 02:36:05 +01:00
update doc
This commit is contained in:
parent
282c9ffa72
commit
682949c1cc
@ -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)}.')
|
||||
|
Loading…
Reference in New Issue
Block a user