Well I have a mini program with C#, so I do this in my program
wordSearch = "T:\\"
wordReplace = "T:\\Gestion\\"
content = Regex.Replace(content, wordSearch, wordReplace);
But doesn't work. The error is:
parsing "T:\" - illegal \ at end of pattern.
Any idea ?
[Added]
Sorry! Perhaps I didn't explain well. So I try again.
I did a form taking a string for input, but if this string is "T:\", the program take "T:\". So, I save this string in variable "workShearch".
After this variable uses in:
content = Regex.Replace(content, Regex.Escape(wordSearch), Regex.Escape(wordReplace));
But this line contains an error, because wordSearch in this case is "T:\", and the program throws an exception like this:
The error in parsing "T:\" - illegal \ at end of pattern.
Thanks!