import re


def aThen01B(a_string):
    """Assumes a_string is a string
    returns a boolean, True is a_string contains n a followed by zero or one b's
    else False
    """
    regex = "ab?"
    results = re.search(regex, a_string)
    return bool(results)