match_context#

maize.utilities.utilities.match_context(match: Match, chars: int = 100) AnyStr[source]#

Provides context to a regular expression match.

Parameters:
  • match – Regular expression match object

  • chars – Number of characters of context to provide

Returns:

Match context

Return type:

AnyStr