File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -265,12 +265,12 @@ Regex
265
265
-----
266
266
``` python
267
267
import re
268
- < str > = re.sub(< regex> , new, text, count = 0 ) # Substitutes all occurrences.
269
- < list > = re.findall(< regex> , text) # Returns all occurrences.
270
- < list > = re.split(< regex> , text, maxsplit = 0 ) # Use brackets in regex to keep the matches.
271
- < Match> = re.search(< regex> , text) # Searches for first occurrence of pattern.
272
- < Match> = re.match(< regex> , text) # Searches only at the beginning of the text.
273
- < Matches > = re.finditer(< regex> , text) # Searches for all occurrences of pattern .
268
+ < str > = re.sub(< regex> , new, text, count = 0 ) # Substitutes all occurrences.
269
+ < list > = re.findall(< regex> , text) # Returns all occurrences.
270
+ < list > = re.split(< regex> , text, maxsplit = 0 ) # Use brackets in regex to keep the matches.
271
+ < Match> = re.search(< regex> , text) # Searches for first occurrence of pattern.
272
+ < Match> = re.match(< regex> , text) # Searches only at the beginning of the text.
273
+ < iter > = re.finditer(< regex> , text) # Returns iterator of all matches .
274
274
```
275
275
276
276
* ** Parameter ` 'flags=re.IGNORECASE' ` can be used with all functions.**
You can’t perform that action at this time.
0 commit comments