Parsing String with fixed-width fields but different length
<p>I need to parse a long string with this pattern:</p>

<pre><code>1)'*'   (text,len:1)
2)accountCount  (number,len:2)
3)accountNumber1    (text,len:20)
4)accountNumber2    (text,len:20)
5)accountNumber3    (text,len:20)
6)accountNumber4    (text,len:20)
...
?)accountNumber'$accountCount'  (text,len:20)
?)'^'   (text,len:1)
</code></pre>

<p>As you can see, the accountNumber field will be repeated in 'accountCount' times.</p>

<p>What is the best way to declare a class for my <code>String</code> and set the <code>accountCount,accountNumber1,accountNumber2,accountNumber3,...</code> properties?</p>
