Remove characters before character "."

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 could try this:

string input = "lala.bla";
output = input.Split('.').Last();

string input = "America.USA"
string output = input.Substring(input.IndexOf('.') + 1);

String input = ....;
int index = input.IndexOf('.');
if(index >= 0)
{
    return input.Substring(index + 1);
}

This will return the new word.