WildcardExpr#
- class loop_detection.WildcardExpr(string, name=None, max_card=inf, field=None)[source]#
Class for wildcard expression rule representation
- Parameters:
Examples
>>> r1 = WildcardExpr("*10*") >>> r2 = WildcardExpr("*1*1")
- __and__(other)[source]#
Returns the result of set intersection
- Parameters:
other (WildcardExpr) –
- Return type:
Examples
>>> r1 = WildcardExpr("*10*") >>> r2 = WildcardExpr("*1*1") >>> r1 & r2 *101
- __lt__(other)[source]#
Check if self is included in other (equality is accepted)
- Parameters:
other (WildcardExpr) –
- Return type:
Examples
>>> r1 = WildcardExpr("*10*") >>> r2 = WildcardExpr("*1**") >>> r1 < r2 True >>> r3 = WildcardExpr("****") >>> r3 < r2 False