string.Format has following method signature
string.Format(format, params, .., .. , ..);
I want to pass custom format each time like
You should use regular expressions for syntax checking and you may use some semantic checking as well.
Regular expression should be: (*{\d+}*)+
(*{\d+}*)+