#NEWLINE# def settings_limited_to( values ) : #NEWLINE# #INDENT# regex = re . compile ( '|' . join ( values ) , re . IGNORECASE ) #NEWLINE# for ( name , value ) in settings ( ) : #NEWLINE# #INDENT# if regex . match ( name ) : #NEWLINE# #INDENT# ( yield ( name , value ) )