import re


def clean_variable_name(variable_name):
    """ Convert the variable name to a name that can be used as a template variable. """
    return re.sub(r"[^a-zA-Z0-9_]", '', variable_name.replace(' ', '_'))