From 52c2e67951011c81fbdd45113bb9ab8d3eccc907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 30 Jan 2019 08:25:36 +0100 Subject: [PATCH] Regex, enum --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 682a428..140e022 100644 --- a/README.md +++ b/README.md @@ -265,6 +265,9 @@ Regex ----- ```python import re +``` + +```python = 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. @@ -774,7 +777,9 @@ Enum ---- ```python from enum import Enum, auto +``` +```python class (Enum): = = ,