def build_path_pattern(path):

    path = re.sub(r'\{(\w+)\}', r'(?P<\1>[\w\-]+)', path)
    return re.compile('^' + path + '/?$')
Add Builders and construction variables for Ghostscript to an
dataset/ETHPy150Open heiskr/sagefy/server/framework/routes.py/build_path_pattern--crossover with--dataset/ETHPy150Open kayhayen/Nuitka/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/gs.py/generate