Get from string with regular expression : <p>I need to extract from string </p>

<blockquote>
  <p><code>userAllowedCrud['create']</code>
  the part that is inside <code>[]</code>.</p>
</blockquote>

<p>i think using regular expression is the better way to do it. Am i wrong?</p>
