ID EN
Built-in Exceptions

split

Python 3.11

Like subgroup(), but returns the pair (match, rest) where match is subgroup(condition) and rest is the remaining non-matching part.

Syntax

PYTHON
split(condition)

See Also

subgroup()