If the string contains double quotes,
string str = "it is a "text""
how can i find out if there is a line? or not.
And how can I remove double quotes?
string str = "it is a \"text\""; string str_without_quotes = str.Replace("\"", "");
Do not try to check if it contains quotation marks, just replace them.
To check if it contains a quote: str.Contains("\"");
str.Contains("\"");
To remove quotes: str.Replace("\"","");
str.Replace("\"","");
To delete str = str.Replace("\"", String.Empty);
str = str.Replace("\"", String.Empty);
Do not forget that the good old (char) 34! It can be used instead of "\" "and @" "" too!
bool containsQuote = str.Contains("\"");
Source: https://habr.com/ru/post/1758853/More articles:HTML5 Canvas: globalCompositeOperation (eraser) - javascriptКак получить cakephp Доставить контент на разные субдомены? - phpsoapui vs eclipse webservice explorer - eclipseAs a software developer, which SNMP package you can easily integrate into your software - c ++Android: How to pass Intent via startActivity () to current activity? - androidText image on the left side with a button on the right side without absolute values - androidJComboBox represents value as HTML select - javaEclipse tells me that the cycle was discovered on the way to construction, but it is not! - eclipseDB2 COBOL Program - db2What is better for DOM manipulation - DOM API or innerHTML? - javascriptAll Articles