@staticmethod
def string_input(question, condition='.+'):
    '\n        Take string-based user input.\n\n        The input question will be repeated until valid input is given, determined by the condition regex.\n\n        Parameters\n        ----------\n        question : str\n            String to be displayed as the input question. Will be boxed with Utils#box_string before printing.\n        condition : r-string, optional\n            Regex to test input string off of.\n\n        Returns\n        -------\n        str\n            Input string.\n        '
    error = ''
    while True:
        Utils.box_string(((error + '\n') + question).strip(), print_string=True)
        response = input()
        if fullmatch(condition, response):
            return response
        else:
            error = 'ERROR: Invalid input! Please try again.'
            continue
Take string-based user input.

The input question will be repeated until valid input is given, determined by the condition regex.

Parameters
----------
question : str
    String to be displayed as the input question. Will be boxed with Utils#box_string before printing.
condition : r-string, optional
    Regex to test input string off of.

Returns
-------
str
    Input string.
@staticmethod
def string_input(question, condition='.+'):
    '\n        Take string-based user input.\n\n        The input question will be repeated until valid input is given, determined by the condition regex.\n\n        Parameters\n        ----------\n        question : str\n            String to be displayed as the input question. Will be boxed with Utils#box_string before printing.\n        condition : r-string, optional\n            Regex to test input string off of.\n\n        Returns\n        -------\n        str\n            Input string.\n        '
    error = 
    while True:
        Utils.box_string(((error + '\n') + question).strip(), print_string=True)
        response = input()
        if fullmatch(condition, response):
            return response
        else:
            error = 'ERROR: Invalid input! Please try again.'
            continue