titus.producer.tools.Or

class titus.producer.tools.Or(*alternatives)[source]

Bases: titus.producer.tools.Matcher

Match at least one of several alternatives.

If any alternatives have substitutions, the first matching substitution is returned.

__init__(*alternatives)
getmatch(haystack)