parameters: (self, pattern, flags=0)
docstring: Initialize.
  
      Args:
        # pattern is the regular expression to search for
        pattern: str
        # flags passed to re.compile function as the second argument
        flags: int
docstring_summary: Initialize.
docstring_tokens: Initialize .
function: def __init__(self, pattern, flags=0):
      """Initialize.
  
      Args:
        # pattern is the regular expression to search for
        pattern: str
        # flags passed to re.compile function as the second argument
        flags: int
      """
  
      self.regex = re.compile(pattern, flags=flags)
function_tokens: def __init__ ( self , pattern , flags = 0 ) : self . regex = re . compile ( pattern , flags = flags )