text_lint.operations.assertions.assert_regex_section.AssertRegexSection

class text_lint.operations.assertions.assert_regex_section.AssertRegexSection(name: str, regex: str, save: str | None = None, splits: AliasYamlSplit | None = None)[Quellcode]

Bases: AssertionRegexBase

Assert a section of adjacent lines matches a regular expression.

The regex will be evaluated until it no longer matches.

apply(state: AssertionState) None[Quellcode]

Apply the AssertRegexSection assertion logic.