import re


def filterresults(searchresults):
    """Given a list of search results, select all those likely to be for flags or coats of arms
    
    :param searchresults: A list of Strings represnting individual search results
    :type searchresults: [String]
    
    :returns: A list of those results that contained the substrings 'flag' or 'coat of arms' (case
        insensitive)
    :rtype: [String]"""
    return [x for x in searchresults if re.search('flag|coat of arms', x, re.IGNORECASE)]