Good point. I didn't know about <code>finditer()</code>.
It is probably immutable, which is perfect for this case.