From 6f4e4617543ecbae032e923052c620ae801f125e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 30 Jan 2019 09:04:29 +0100 Subject: [PATCH] Regex --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8e6969a..70e2d7e 100644 --- a/README.md +++ b/README.md @@ -265,12 +265,12 @@ Regex ----- ```python import re - = re.sub(, new, text, count=0) # Substitutes all occurrences. - = re.findall(, text) # Returns 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. - = re.finditer(, text) # Searches for all occurrences of pattern. + = re.sub(, new, text, count=0) # Substitutes all occurrences. + = re.findall(, text) # Returns 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. + = re.finditer(, text) # Returns iterator of all matches. ``` * **Parameter `'flags=re.IGNORECASE'` can be used with all functions.**