def __init__(
        self,
        regexes=None,
        open_delimeter="{{",
        close_delimeter="}}",
        exact=False,
        flexible_whitespace=False,
    ):
        """
        Initialize simex.

        regexes: A dict of keys and values. Will override self.DEFAULTS if specified.
        open_delimeter: what specifies the beginning of a key (default '}}')
        close_delimeter: what specifies the end of a key (default '}}')
        exact: whether to match an exact string (i.e. start with ^ and end with $).
        flexible_whitespace: match multiple whitespace characters.
        """
        if regexes is None:
            self._regexes = self.DEFAULTS
        else:
            self._regexes = dict([r for r in self.DEFAULTS.items()] + [r for r in regexes.items()])
        self._open_delimeter = open_delimeter
        self._close_delimeter = close_delimeter
        self._exact = exact
        self._flexible_whitespace = flexible_whitespace
def __init__ ( self , regexes = None , open_delimeter = "{{" , close_delimeter = "}}" , exact = False , flexible_whitespace = False , ) : if regexes is None : self . _regexes = self . DEFAULTS else : self . _regexes = dict ( [ r for r in self . DEFAULTS . items ( ) ] + [ r for r in regexes . items ( ) ] ) self . _open_delimeter = open_delimeter self . _close_delimeter = close_delimeter self . _exact = exact self . _flexible_whitespace = flexible_whitespace
Initialize simex.

        regexes: A dict of keys and values. Will override self.DEFAULTS if specified.
        open_delimeter: what specifies the beginning of a key (default '}}')
        close_delimeter: what specifies the end of a key (default '}}')
        exact: whether to match an exact string (i.e. start with ^ and end with $).
        flexible_whitespace: match multiple whitespace characters.