'Test if quality matches to text.
:param string text: data te be tested against
:returns: tuple (matches, remaining text without quality data)'

def matches(self, text):

    match = self.regexp.search(text)
    if (not match):
        return (False, u'')
    else:
        text = (text[:match.start()] + text[match.end():])
    return (True, text)
