Skip to content
YosoiDocs

CapturedText

yosoi.outcomes.CapturedText

class CapturedText(ImmutableModel):

Projected text and named regular-expression capture values.

Attributes: text: Full projected text independent of captured subexpressions. captures: Capture names mapped to their matched text. The mapping contents remain mutable even though model attribute assignment is frozen.

Source: python/yosoi/outcomes.py:580

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

text: str
captures: dict[str, str]