If you’re parsing strings in python, don’t overlook `str.partition()`. It’s like `split()` but returns 3 parts.
For regex, `re.split()` is handy when you need more control.
Also, `json.loads()` is great if your string is JSON (obviously).
Example:
```python
text = "key=value"
key, sep, value = text.partition("=")
```
For regex, `re.split()` is handy when you need more control.
Also, `json.loads()` is great if your string is JSON (obviously).
Example:
```python
text = "key=value"
key, sep, value = text.partition("=")
```
