using System.Text.RegularExpressions;
public static void Main()
string str = @"{1:}{2:}{3:}{4:\r\n-}{5:}";
string regex = @"{4:\r\n-}";
Match m = Regex.Match(str, Regex.Escape(regex));
Console.WriteLine("Found '{0}' at position {1}.", m.Value, m.Index);
Console.WriteLine("No match found");