I have the following:
string test = \"9586-202-10072\"
How would I get all characters to the right of the final - so 10072. Th
-
You could use LINQ, and save yourself the explicit parsing:
string test = "9586-202-10072"; string lastFragment = test.Split('-').Last(); Console.WriteLine(lastFragment);