Skip to content

Commit 76ac9ab

Browse files
committed
Regex
1 parent 31ad40f commit 76ac9ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,6 @@ String
263263

264264
Regex
265265
-----
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-
271266
```python
272267
import re
273268
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
@@ -278,6 +273,11 @@ import re
278273
<Matches> = re.finditer(<regex>, text) # Searches for all occurrences of pattern.
279274
```
280275

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+
281281
### Match Object
282282
```python
283283
<str> = <Match>.group() # Whole match.

0 commit comments

Comments
 (0)