From 0df8f2eb1459be645eb58e9259b91fce71a4ce1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 5 Jul 2019 14:02:17 +0200 Subject: [PATCH] Regex --- README.md | 3 ++- index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2dbd4e..e4c0c22 100644 --- a/README.md +++ b/README.md @@ -353,6 +353,7 @@ import re ``` * **Argument `'flags=re.IGNORECASE'` can be used with all functions.** +* **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.** * **Argument `'flags=re.DOTALL'` makes dot also accept newline.** * **Use `r'\1'` or `'\\1'` for backreference.** * **Use `'?'` to make an operator non-greedy.** @@ -931,7 +932,7 @@ class : return cls.__name__ ``` * **Return value of repr() should be unambiguous and of str() readable.** -* **If only repr() is defined, it will also be used for str().** +* **If only repr() is defined, it will be also used for str().** #### Str() use cases: ```python diff --git a/index.html b/index.html index 023a1b5..7bc3837 100644 --- a/index.html +++ b/index.html @@ -446,6 +446,7 @@ to_exclusive = <range>.stop