import re


def dash_matcher(date: str) -> bool:
    """Checks if given string date is in 'dashed' format ending in 17 or 18
    Examples:
        dash_matcher(2018-01-17) -> True
        dash_matcher(12-12-18) -> True
        dash_matcher(1/2/17) -> False
        
    Args:
        date: a string to be testsed for date formating
    """
    dash_date = r'(\d{2}|\d{4})-\d?\d-1(7|8)'
    z = re.search(dash_date, date)
    if z:
        return True
    return False