import re


def inputValid(userInput):
    """Verifies user input as valid. Accepts strings. Returns True for valid input, False for invalid."""
    regex = "\d+[d,D]+\d+[+,-]\d+"
    if re.search(regex, userInput):
        return True
    else:
        return False