Text matching (logic)¶
and¶
or¶
not¶
- class daf.logic.not_(operand: BaseLogic)¶
Represents logical NOT operator.
- Parameters:
operand (BaseLogic) – A single operand to negate.
contains¶
regex¶
- class daf.logic.regex(pattern: str, flags: RegexFlag = re.IGNORECASE | re.MULTILINE, full_match: bool = False)¶
RegEx (regular expression) text matching condition.
- Parameters:
pattern (str) – The RegEx pattern string.
flags (Optional[re.RegexFlag]) – RegEx (binary) flags. Defaults to re.MULTILINE.
full_match (Optional[bool]) – Boolean parameter. If True, the
pattern
must capture the entire text message string for a match. Defaults to False.