'We take a split & filter approach to matching our regexps to the
command output'

def matchInOutput(self, regexp, output):

    mapped_list = map((lambda s: re.search(regexp, s)), re.split('(\\r|\\n)', output))
    filtered_list = filter((lambda s: (s is not None)), mapped_list)
    if (len(filtered_list) > 0):
        return filtered_list[0]
    else:
        return None
