Class Regex (3.9.2)

Stay organized with collections Save and categorize content based on your preferences.
Regex(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message defining a custom regular expression.

Attributes

NameDescription
pattern str
Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
group_indexes Sequence[int]
The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.

Inheritance

builtins.object > proto.message.Message > Regex