':param text:    The text which should be scanned
:param flags:   default regular expression flags'

def __init__(self, text, flags=0):

    self.data = text
    self.data_length = len(text)
    self.start_pos = 0
    self.pos = 0
    self.flags = flags
    self.last = None
    self.match = None
    self._re_cache = {}
