B
bob
Hi
I have a long regex string that needs to match the quote char. It is
matching a CSV text file where all data fields are encased in quotes.
Some fields are empty ie double quotes. I want to make sure all fields
are correctly formed.
Is there any easy way to embed the '"" in the string or do I have to
break it up into something like
char quote = '"';
string myregex = "\\A" +quote + ",([^,\r\n]*)" + quote + "," + quote
+",([^,\r\n]*)" etc etc.
I formed the regex string in RegexBuddy and would love to just dump
into a c# string
thanks
Bob
I have a long regex string that needs to match the quote char. It is
matching a CSV text file where all data fields are encased in quotes.
Some fields are empty ie double quotes. I want to make sure all fields
are correctly formed.
Is there any easy way to embed the '"" in the string or do I have to
break it up into something like
char quote = '"';
string myregex = "\\A" +quote + ",([^,\r\n]*)" + quote + "," + quote
+",([^,\r\n]*)" etc etc.
I formed the regex string in RegexBuddy and would love to just dump
into a c# string
thanks
Bob