We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bd4fd commit 52c2e67Copy full SHA for 52c2e67
README.md
@@ -265,6 +265,9 @@ Regex
265
-----
266
```python
267
import re
268
+```
269
+
270
+```python
271
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
272
<list> = re.findall(<regex>, text) # Returns all occurrences.
273
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
@@ -774,7 +777,9 @@ Enum
774
777
----
775
778
776
779
from enum import Enum, auto
780
781
782
783
class <enum_name>(Enum):
784
<member_name_1> = <value_1>
785
<member_name_2> = <value_2_a>, <value_2_b>
0 commit comments