String Manipulation - Replace function
-
Good day all I have got a string in c# as shown below, and i want to find and replace a substring within the string with another string. here is the original string: mystring = "Testing Image Embading
\r\n![]()
\r\nEmage Embabeded here\r\n" my string replace function: mystring = mystring.Replace("src=\"/Web%20Cleint"/"Home%20Page"/"Images"/"Stop.png\","src=cid:companylogo"); My problem: is im have difficulties in handling escape characters, i keep getting the error "; missing" or newline in constant. does anyone know i can solve this or help me with links on how to solve this. Please note im working with web application. -
Good day all I have got a string in c# as shown below, and i want to find and replace a substring within the string with another string. here is the original string: mystring = "Testing Image Embading
\r\n![]()
\r\nEmage Embabeded here\r\n" my string replace function: mystring = mystring.Replace("src=\"/Web%20Cleint"/"Home%20Page"/"Images"/"Stop.png\","src=cid:companylogo"); My problem: is im have difficulties in handling escape characters, i keep getting the error "; missing" or newline in constant. does anyone know i can solve this or help me with links on how to solve this. Please note im working with web application.@
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion