Iterating over pattern
<p>Suppose you're dealing with data organized in the following format:</p>

<pre><code>[123]="some string" [234]=999999999 [345]="some other string"
</code></pre>

<p>In Java, what would be the easiest way to split each by KV combination, where K is the tag (enclosed in <code>[  ]</code>).</p>

<p>Is there a Utils (Apache or other?) method you know off that lets you define a structure as shown above to help with iterating over it, instead of having to manually count and read data past and between  <code>[  ]</code>?</p>

<p>What do we know?</p>

<ul>
<li>Each element will have a tag</li>
<li>Each tag will be surrounded by <code>[ ]</code></li>
<li>Tag and value assigned to the tag will be separated by <code>=</code></li>
<li>Value will be there. No empty values allowed.</li>
<li>Value may or may not be surrounded by quotes</li>
</ul>
