def filter(self, value, model=None, context=None):
value = str(value)<EOL>pattern = r'<STR_LIT>'<EOL>found = '<STR_LIT>'.join(re.findall(pattern, value))<EOL>if found and self.to_int:<EOL><INDENT>found = int(found)<EOL><DEDENT>return found<EOL>
Filter
Performs value filtering and returns filtered result.

:param value:           input value
:param model:           parent model being validated
:param context:         object, filtering context
:return:                filtered value