Skip to content

RegularExpressionMatchIterator

Qt Base Class: QRegularExpressionMatchIterator

Signature: QRegularExpressionMatchIterator(self) -> None QRegularExpressionMatchIterator(self, iterator: PySide6.QtCore.QRegularExpressionMatchIterator) -> None

Base classes

Name Children Inherits
QRegularExpressionMatchIterator
PySide6.QtCore
QRegularExpressionMatchIterator(self) -> None

⋔ Inheritance diagram

graph TD
  1473299879440["core.RegularExpressionMatchIterator"]
  1473243799840["QtCore.QRegularExpressionMatchIterator"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473243799840 --> 1473299879440
  1473291690208 --> 1473243799840
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QRegularExpressionMatchIterator

Iterator on the results of a global match of a QRegularExpression.

Source code in prettyqt\core\regularexpressionmatchiterator.py
class RegularExpressionMatchIterator(core.QRegularExpressionMatchIterator):
    """Iterator on the results of a global match of a QRegularExpression."""

    def __repr__(self):
        return get_repr(self)

    def __iter__(self):
        return self

    def __next__(self):
        if self.hasNext():
            return core.RegularExpressionMatch(self.next())
        raise StopIteration

    def peek_next(self) -> core.RegularExpressionMatch:
        return core.RegularExpressionMatch(self.peekNext())