re module

Matches are represented by the following dict structure:

Regular expression syntax (google/re2 wiki/Syntax)

Regular expressions are a notation for describing sets of character strings. When a particular string is in the set described by a regular expression, we often say that the regular expression matches the string.