c# ; "\" character
I get an error saying "Newline in constant" at the following line.
str_link=str_link.Replace ("\\","\");
Is there any way to solve this please?
[156 byte] By [
rkbnair] at [2007-11-11 8:14:33]

# 1 Re: c# ; "\" character
Try placing an @ symbol in front of your quoted strings:
str_link=str_link.Replace(@"\\", @"\");
That tells C# not to interpret the backslash (\) as an escape character.
# 3 Re: c# ; "\" character
Try this:
str_link = str_link.Replace("\\\\", "\\");
destin at 2007-11-11 23:15:20 >

# 5 Re: c# ; "\" character
Please post a complete example, including the string you're trying to change, and how you're testing whether the characters have been successfully replaced.