Browse Source

Regex special sequences added

pull/3/head
Jure Šorn 6 years ago
parent
commit
ff4910706e
1 changed files with 4 additions and 4 deletions
  1. 8
      README.md

8
README.md

@ -173,10 +173,10 @@ re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches
**Use r'\1' for backreference.**
#### Special Sequences
```
\d == [0-9] # Digit
\s == [ \t\n\r\f\v] # Whitespace
\w == [a-zA-Z0-9_] # Alphanumeric
```python
'\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