File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -263,11 +263,6 @@ String
263
263
264
264
Regex
265
265
-----
266
- * ** Parameter ` 'flags=re.IGNORECASE' ` can be used with all functions.**
267
- * ** Parameter ` 'flags=re.DOTALL' ` makes dot also accept newline.**
268
- * ** Use ` r'\1' ` or ` '\\\\1' ` for backreference.**
269
- * ** Use ` '?' ` to make operators non-greedy.**
270
-
271
266
``` python
272
267
import re
273
268
< str > = re.sub(< regex> , new, text, count = 0 ) # Substitutes all occurrences.
@@ -278,6 +273,11 @@ import re
278
273
< Matches> = re.finditer(< regex> , text) # Searches for all occurrences of pattern.
279
274
```
280
275
276
+ * ** Parameter ` 'flags=re.IGNORECASE' ` can be used with all functions.**
277
+ * ** Parameter ` 'flags=re.DOTALL' ` makes dot also accept newline.**
278
+ * ** Use ` r'\1' ` or ` '\\\\1' ` for backreference.**
279
+ * ** Use ` '?' ` to make operators non-greedy.**
280
+
281
281
### Match Object
282
282
``` python
283
283
< str > = < Match> .group() # Whole match.
You can’t perform that action at this time.
0 commit comments