import re


def parse_scenario_gtest_name(name):
    """Parse scenario name to form acceptable by gtest"""
    # strip
    name = name.strip()
    # space and tab to _
    name = name.replace(" ", "_").replace("\t", "_")
    # remove dots. commas
    name = re.sub('[^a-zA-Z_]+', '', name)
    # make lower
    name = name.lower()
    return name