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,6 +263,11 @@ 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
+
266
271
``` python
267
272
import re
268
273
< str > = re.sub(< regex> , new, text, count = 0 ) # Substitutes all occurrences.
@@ -273,11 +278,6 @@ import re
273
278
< Matches> = re.finditer(< regex> , text) # Searches for all occurrences of pattern.
274
279
```
275
280
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