#NEWLINE# @ staticmethod #NEWLINE# def _regex_search( value , pattern = '' , ignorecase = False ) : #NEWLINE# #INDENT# if ( not isinstance ( value , six . string_types ) ) : #NEWLINE# #INDENT# value = str ( value ) #NEWLINE# #UNINDENT# flags = CustomFilters . _get_regex_flags ( ignorecase ) #NEWLINE# return bool ( re . search ( pattern , value , value ) )