How do I get the rightmost part of a string, as with the VB Right function?

 Use <code>String.Substring</code>. Assuming that <code>x</code> is a string of length at least    <code>n</code>, to get the last <code>n</code> characters, you would use <code>x.Substring(x.Length-n)</code>.  <p>    Note that the above assumes that the string is at least <code>n</code> characters long. For a more robust version,     you might use something like: <code>x.Length .  </code>

[Author: Jon Skeet]