import re


def asStringIdentifier(s):
    """
    Substitute for jinja filter combination: |replace("/", "_")|replace(":","_")|replace(".","_")
    """
    assert isinstance(s, str)
    return re.sub(r'[/:.]', '_', s)