get datatype length in python by parsing a string
<p>I have strings like</p>

<pre><code>uint8_t
char[5]
int[3]
</code></pre>

<p>How can I write a short function to get the type and length separately in an elegant way</p>

<p>for eg</p>

<pre><code>uint8_t // return 'uint8_t', '1'
char[5] // return 'char', '5'
...
</code></pre>
