G
Guest
This is mainly a string formatting question. I wasn't able to search on '{' or '@' so I am turning to this group for what should be a very simple question
Primarily for regular expressions I want to format a string that has '{' characters in the output. Something like
string.Format(@"(?<char>[A-Za-z0-9])(\k<char>){{0},}", count - 1)
To find repeating characters. The problem is that the above does not work. I don't know how to escape the '{' character? As is the above throws an exception
Any ideas
Kevin
Primarily for regular expressions I want to format a string that has '{' characters in the output. Something like
string.Format(@"(?<char>[A-Za-z0-9])(\k<char>){{0},}", count - 1)
To find repeating characters. The problem is that the above does not work. I don't know how to escape the '{' character? As is the above throws an exception
Any ideas
Kevin