use javascript to split this string "text[99][text]"
<p>I have some input text field in a form that have name with this format:
<strong>sometext[234][sometext]</strong></p>

<p>Something like <code>&lt;input type="text" name="user[2][city]" /&gt;</code></p>

<p>I need obtain 'user','2' and 'city' with split function.</p>

<p>Thank you </p>
