From 53fa3d38ba8b318789c978bac8c48f166a035d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 4 Apr 2018 15:01:57 +0200 Subject: [PATCH] Regex special sequences --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 471989c..12556ae 100644 --- a/README.md +++ b/README.md @@ -174,9 +174,9 @@ re.split(, text, maxsplit=0) # Use brackets in regex to keep the matches #### Special Sequences: ```python -'\d' == [0-9] # Digit -'\s' == [ \t\n\r\f\v] # Whitespace -'\w' == [a-zA-Z0-9_] # Alphanumeric +'\d' == '[0-9]' # Digit +'\s' == '[ \t\n\r\f\v]' # Whitespace +'\w' == '[a-zA-Z0-9_]' # Alphanumeric ``` **Use capital letter for negation.**