Browse Source

Regex

pull/10/head
Jure Šorn 6 years ago
parent
commit
979482cb65
1 changed files with 0 additions and 4 deletions
  1. 4
      README.md

4
README.md

@ -265,9 +265,7 @@ Regex
----- -----
```python ```python
import re import re
```
```python
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences. <str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
<list> = re.findall(<regex>, text) # Returns all occurrences. <list> = re.findall(<regex>, text) # Returns all occurrences.
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches. <list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
@ -777,9 +775,7 @@ Enum
---- ----
```python ```python
from enum import Enum, auto from enum import Enum, auto
```
```python
class <enum_name>(Enum): class <enum_name>(Enum):
<member_name_1> = <value_1> <member_name_1> = <value_1>
<member_name_2> = <value_2_a>, <value_2_b> <member_name_2> = <value_2_a>, <value_2_b>

|||||||
100:0
Loading…
Cancel
Save