Parse number from string value in C#
<p>I am working on .net project, and I am trying to parse only the numeric value from string.  For example,</p>

<pre><code>string s = "12ACD";
int t = someparefun(s); 
print(t) //t should be 12
</code></pre>

<p>A couple assumptions are
1. The string pattern always will be number follow by characters.
2. The number portion always will be either one or two digits value.</p>

<p>Is there any C# predefined function to parse the numeric value from string?</p>

<p>Thanks for your help.</p>
