title: How to catch HTML tags with regex?
body: <p>I've a regex pattern to get some HTML tags in my code. The problem is that the pattern is getting more than just a tag, bringing all the part of code between the first match and the lastest match.</p>
  
  <p>Here is my regex tests:
  <a href="https://regexr.com/3h073" rel="nofollow noreferrer">https://regexr.com/3h073</a></p>
  
  <p>This is how my current regex looks:</p>
  
  <pre><code>&lt;option_(.*)_[0-9]&gt;
  </code></pre>
  
  <p>And in the following text and need two different matches (<code>&lt;option_teste_2&gt;</code>,<code>&lt;option_teste_1&gt;</code>):</p>
  
  <pre><code>&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;table class="table table-bordered"&gt;&lt;tbody&gt;&lt;option_teste_2&gt;&lt;tr&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;input_nome_funcionario&gt;&lt;br&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;option_teste_1&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;td&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Thanks.</p>