re
dz / python / docs / stdlib / reNode Tree
Nodes
| sub | |
| content | re.sub(pattern, repl, string, count=0, flags=0): Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. |
| parents | python/docs/stdlib/re, leetcode/problems/1071_GCD_of_strings |
| hyperlink | https://docs.python.org/3/library/re.html#re.sub |
| location | knowledge/python.dz:238 |
| split | |
| hyperlink | https://docs.python.org/3/library/re.html#re.split |
2025-01-04 10:10 cool, re.split seems to be an easy way to split messages up