private static void CreateParameterTemplateRegex(this ParameterInfo parameter, FromUrlAttribute fromUrl, out string parameterTemplateRegex) { parameterTemplateRegex = UriTemplateBuilder.VariableTemplateRegex.Replace(fromUrl.UrlTemplate.ToString(), "[^/?]+"); }