I'm having trouble removing the backslash from my string. The line is similar to "3adsadas34 \". I want to remove the backslash at the end, I tried:
urlContent = realUrl.Remove(realUrl.Length - 1, 1);
But he does not want to work. I would like to know if I can use a regex, and if possible maybe someone can provide a regex pattern to remove the '\' from this line or some other way to remove the backslash is more than welcome. Thanks in advance, Laziale
source share