title: SQL- Only keep square brackets and data inside those
body: <p>I was looking for a way to dynamically parse a string:</p>
  
  <p><strong>Input:</strong> <code>A[1]/B2[2]/C_D[1]</code> </p>
  
  <p><strong>Output:</strong> <code>[1][2][1]</code></p>