I have this string: "NT-DOM-NVMTA" How can I delete the first part: "NT-DOM-NV" To have this as result: "MTA"
How is it possible with RegEx?
See Question&Answers more detail:osI have this string: "NT-DOM-NVMTA" How can I delete the first part: "NT-DOM-NV" To have this as result: "MTA"
How is it possible with RegEx?
See Question&Answers more detail:osyou can use this codes:
str = str.Substring (10); // to remove the first 10 characters.
str = str.Remove (0, 10); // to remove the first 10 characters
str = str.Replace ("NT-DOM-NV\", ""); // to replace the specific text with blank
// to delete anything before
int i = str.IndexOf('\');
if (i >= 0) str = str.SubString(i+1);