Splitting data out of the name attr

Splitting data out of the name attr

I know this is probably super easy....but how does one extract var_1 & var_2 out of this?

<input type="checkbox" name="checkbox[var_1][var_2]" />