Using regex: C# Regular Expression: Remove leading and trailing double quotes (") on newest questions tagged regex – Stack Overflow
If I have a string like below… what is the regular expression to remove the (optional) leading and trailing double quotes? For extra credit, can it also remove any optional white space outside of the quotes:
string input = "\"quoted string\"" -> quoted string
string inputWithWhiteSpace = " \"quoted string\" " => quoted string
(for C# using Regex.Replace)
See Answers
source: http://stackoverflow.com/questions/3281772/c-sharp-regular-expression-remove-leading-and-trailing-double-quotes
Using regex: using-regex
Recent Comments