using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
/*string routerTemplate = "/ds";
string path = "/s";
string regexPattern = "^" + Regex.Replace(
routerTemplate,
@"\{[^\/}]+\}",
@"\d+"
) + "/?$";
bool match = Regex.IsMatch(path, regexPattern, RegexOptions.IgnoreCase);
Console.WriteLine("Pattern:" + regexPattern);
Console.WriteLine("Matches: " + match.ToString());*/
string test = "es";
string result = string.IsNullOrWhiteSpace(test) ? "/" : test;
Console.WriteLine("Result: " + result);
}