

def rex_text(self, regexp, flags=0, byte=False, default=NULL):
    '\n        Search regular expression in response body and return content of first\n        matching group.\n\n        :param byte: if False then search is performed in\n        `response.unicode_body()` else the rex is searched in `response.body`.\n        '
    try:
        match = self.rex_search(regexp, flags=flags, byte=flags)
    except DataNotFound:
        if (default is NULL):
            raise DataNotFound('Regexp not found')
        else:
            return default
    else:
        return normalize_space(decode_entities(match.group(1)))

dataset/ETHPy150Open lorien/grab/grab/document.py RegexpExtension.rex_text/VarMisuse@44/136 `byte`->`flags`