From 74e4ef67b0abfcbe8055fde3353a8aee71b7d52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Dec 2018 14:16:00 +0100 Subject: [PATCH] Regex --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcb7a8c..f34bf18 100644 --- a/README.md +++ b/README.md @@ -258,8 +258,8 @@ Regex ----- ```python import re - = re.sub(, new, text, count=0) # Substitutes all occurrences. = re.findall(, text) + = re.sub(, new, text, count=0) # Substitutes all occurrences. = 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.