I have the following:
string test = \"9586-202-10072\"
How would I get all characters to the right of the final - so 10072. Th
-
string atest = "9586-202-10072"; int indexOfHyphen = atest.LastIndexOf("-"); if (indexOfHyphen >= 0) { string contentAfterLastHyphen = atest.Substring(indexOfHyphen + 1); Console.WriteLine(contentAfterLastHyphen ); }