From 4f203520f5761370e163d039d4046165e92d4d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Dec 2018 14:17:36 +0100 Subject: [PATCH] Regex --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.