import re


def parse_show_snmp_community(raw_result):
    """
    Parse the 'show snmp community' command raw output.

    :param str raw_result: vtysh raw result string.
    :rtype: list
    :return: The parsed result of the show snmp community\
       command in a list of strings

     ::

        [
            'public',
            'private',
            'community1',
            'community2'
        ]
    """
    pattern_found = 0
    result = []
    res = 0
    for line in raw_result.splitlines():
        if pattern_found == 2:
            result.append(line.strip())
        else:
            res = re.match(r'\s*-+\s*', line)
            if res:
                pattern_found = pattern_found + 1
    if result == {}:
        return None
    else:
        return result