How to easily remove part of string from string array in c#
<p>I am using following code:</p>

<pre><code>var names = ConfigurationManager.AppSettings.AllKeys.Where(k =&gt; k.StartsWith("name"));
</code></pre>

<p>and i get keys like: name1, name2, name16, name18. </p>

<p>Now i want to create another array which will remove name and just keep 1,2,16,18. Is there any easy way to do this in above code itself? Or do it seperatly?</p>
