diff --git a/README.md b/README.md index 20a7064..90c7cf3 100644 --- a/README.md +++ b/README.md @@ -161,14 +161,15 @@ print( [, , end='', sep='', file=]) ### Regex ```python import re -re.sub(, new, text) # Use r'\1' for backreference. -re.search(, text) +re.sub(, new, text, count=0) +re.search(, text) # Searches for first occurance of pattern. re.match(, text) # Searches only at the beginning of the string. re.findall(, text) -re.split(, text) # Use brackets in regex to keep the matches. +re.split(, text, maxsplit=0) # Use brackets in regex to keep the matches. ``` -* **Parameter 'flags=re.IGNORECASE' can be used with all functions.** +**Parameter 'flags=re.IGNORECASE' can be used with all functions.** +**Use r'\1' for backreference.** ### Format ```python