Skip to content

Commit 6f4e461

Browse files
committed
Regex
1 parent 97ac04f commit 6f4e461

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ Regex
265265
-----
266266
```python
267267
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.
274274
```
275275

276276
* **Parameter `'flags=re.IGNORECASE'` can be used with all functions.**

0 commit comments

Comments
 (0)