Browse Source

Regex

pull/9/head
Jure Šorn 5 years ago
parent
commit
74e4ef67b0
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -258,8 +258,8 @@ Regex
-----
```python
import re
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
<list> = re.findall(<regex>, text)
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.
<Match> = re.search(<regex>, text) # Searches for first occurrence of pattern.
<Match> = re.match(<regex>, text) # Searches only at the beginning of the text.

Loading…
Cancel
Save