public function convertBlueprintNameIntoRegex($blueprintName) { return '/^' . preg_replace('/\\{[^\\}]+?\\}/', '(.*)', $blueprintName) . '$/'; }