diff --git a/README.md b/README.md index f34bf18..bcb7a8c 100644 --- a/README.md +++ b/README.md @@ -258,8 +258,8 @@ Regex ----- ```python import re - = re.findall(, text) = re.sub(, new, text, count=0) # Substitutes all occurrences. + = re.findall(, text) = re.split(, text, maxsplit=0) # Use brackets in regex to keep the matches. = re.search(, text) # Searches for first occurrence of pattern. = re.match(, text) # Searches only at the beginning of the text.