Skip to content

Commit 4f20352

Browse files
committed
Regex
1 parent 74e4ef6 commit 4f20352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ Regex
258258
-----
259259
```python
260260
import re
261-
<list> = re.findall(<regex>, text)
262261
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
262+
<list> = re.findall(<regex>, text)
263263
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
264264
<Match> = re.search(<regex>, text) # Searches for first occurrence of pattern.
265265
<Match> = re.match(<regex>, text) # Searches only at the beginning of the text.

0 commit comments

Comments
 (0)