Browse Source

Regex special sequences

pull/3/head
Jure Šorn 7 years ago
parent
commit
53fa3d38ba
1 changed files with 3 additions and 3 deletions
  1. 6
      README.md

6
README.md

@ -174,9 +174,9 @@ re.split(<regex>, 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.**

Loading…
Cancel
Save