#NEWLINE# def get_product_groups( self , content ) : #NEWLINE# #INDENT# 'Extract product group hashtags.' #NEWLINE# pg = [ ] #NEWLINE# for product_group in ProductGroup . all_tags ( ) : #NEWLINE# #INDENT# result = re . search ( product_group , content , flags = re . IGNORECASE ) #NEWLINE# if ( result is not None ) : #NEWLINE# #INDENT# pg . append ( product_group ) #NEWLINE# #UNINDENT# #UNINDENT# return pg