You can use the IndexOf
method and the Substring
method like so:
string output = input.Substring(input.IndexOf('.') + 1);
The above doesn’t have error handling, so if a period doesn’t exist in the input string, it will present problems.
You can use the IndexOf
method and the Substring
method like so:
string output = input.Substring(input.IndexOf('.') + 1);
The above doesn’t have error handling, so if a period doesn’t exist in the input string, it will present problems.