I have this string: \"NT-DOM-NV\\MTA\" How can I delete the first part: \"NT-DOM-NV\\\" To have this as result: \"MTA\"
How is it possible with RegEx?
If there is always only one backslash, use this:
string result = yourString.Split('\\').Skip(1).FirstOrDefault();
If there can be multiple and you only want to have the last part, use this:
string result = yourString.SubString(yourString.LastIndexOf('\\') + 1);