From 76ac9ab36d2651b739c3238eba174436254d32a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 29 Jan 2019 19:01:35 +0100 Subject: [PATCH] Regex --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 790c7c0..1a6bdbb 100644 --- a/README.md +++ b/README.md @@ -263,11 +263,6 @@ String Regex ----- -* **Parameter `'flags=re.IGNORECASE'` can be used with all functions.** -* **Parameter `'flags=re.DOTALL'` makes dot also accept newline.** -* **Use `r'\1'` or `'\\\\1'` for backreference.** -* **Use `'?'` to make operators non-greedy.** - ```python import re = re.sub(, new, text, count=0) # Substitutes all occurrences. @@ -278,6 +273,11 @@ import re = re.finditer(, text) # Searches for all occurrences of pattern. ``` +* **Parameter `'flags=re.IGNORECASE'` can be used with all functions.** +* **Parameter `'flags=re.DOTALL'` makes dot also accept newline.** +* **Use `r'\1'` or `'\\\\1'` for backreference.** +* **Use `'?'` to make operators non-greedy.** + ### Match Object ```python = .group() # Whole match.