Browse Source

Regex

pull/10/head
Jure Šorn 5 years ago
parent
commit
56825dc10c
1 changed files with 0 additions and 1 deletions
  1. 1
      README.md

1
README.md

@ -265,7 +265,6 @@ Regex
----- -----
```python ```python
import re import re
<str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences. <str> = re.sub(<regex>, new, text, count=0) # Substitutes all occurrences.
<list> = re.findall(<regex>, text) # Returns all occurrences. <list> = re.findall(<regex>, text) # Returns all occurrences.
<list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches. <list> = re.split(<regex>, text, maxsplit=0) # Use brackets in regex to keep the matches.

Loading…
Cancel
Save