title: How to check if braces are closed and in the right order?
body: <p>I tried to solve a challenge today and I couldn't. I had to make sure that all the braces of a string are closed and in the correct order.</p>
  
  <p>For instance, these would be correct:</p>
  
  <pre><code>{[()]}
  {}()[]
  {((()))}[]
  </code></pre>
  
  <p>These would not:</p>
  
  <pre><code>{[}]
  {{)}
  </code></pre>
  
  <p>I thought about doing with regex, I couldn't, can anyone show how to do it? (regex or other ways). </p>
  
  <p>To clarify, I'm not trying to get the content inside the braces, there isn't any content inside.</p>