From 4ae69e427b1099dfdbe4d1ed2260311d51544518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 21 Nov 2018 18:15:12 +0100 Subject: [PATCH] Regex --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8d9da9f..5c5b17d 100644 --- a/README.md +++ b/README.md @@ -198,6 +198,10 @@ import re = re.finditer(, text) # Searches for all occurences of pattern. ``` +* **Parameter 'flags=re.IGNORECASE' can be used with all functions. Parameter 'flags=re.DOTALL' makes dot also accept newline.** +* **Use '\\\\1' or r'\1' for backreference.** +* **Use ? to make operators non-greedy.** + #### Match object: ```python = .group() # Whole match. @@ -205,11 +209,6 @@ import re = .start() # Start index of a match. = .end() # Exclusive end index of a match. ``` - -* **Parameter 'flags=re.IGNORECASE' can be used with all functions. Parameter 'flags=re.DOTALL' makes dot also accept newline.** -* **Use '\\\\1' or r'\1' for backreference.** -* **Use ? to make operators non-greedy.** - #### Special sequences: ```python