Getting punctuation from the end of a string only
<p>I'm looking for a C# snippet to remove and store any punctuation from the <strong>end of a string only</strong>.</p>

<p>Example:</p>

<ul>
<li>Test! would return !</li>
<li>Test;; would return ;;</li>
<li><p>Test?:? would return ?:?</p></li>
<li><p>!!Test!?! would return !?!</p></li>
</ul>

<p>I have a rather clunky solution at the moment but wondered if anybody could suggest a more succinct way to do this.</p>

<p>My puncutation list is </p>

<pre><code>new char[] { '.', ':', '-', '!', '?', ',', ';' })
</code></pre>
