Regex Counting Characters in a text field
<p>I am trying to count the characters in a text field. I found how to count all the characters.</p>

<pre><code>string st = TextBox1.Text;
this.TextBox2.Text = Regex.Matches(st, ".|").Count.ToString();
</code></pre>

<p>But I  need to create 2 more separate counts, Any Caps, numbers, - or # up to (not including) @</p>

<p><code>eg. LA-FG4-DETF-DJJJTHD-S@T-JHF-F1-F2</code> the count would be <code>21</code></p>

<p>and the other one I need to count from the @ (including) , Any Caps, numbers, - or #  to the end of the text field.</p>

<p><code>eg. LA-FG4-DETF-DJJJTHD-S@T-JHF-F1-F2</code> the count would be <code>12</code></p>

<p>Any help would be appreciated.</p>
