title: regex: match until the first ] character is found
body: <p>I'm trying to match untill the first occurence of ] is found but can't seem to make it work, if someone could help me figure this out.</p>
  
  <p>The string I'm matching against:</p>
  
  <pre><code>[plugin:tabs][tab title="test"]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sit amet nisl nisl. Ut interdum libero vitae quam ultricies et lacinia elit aliquet. Praesent tincidunt, sem tempus feugiat feugiat, turpis tellus scelerisque erat, sit amet feugiat neque arcu ac lectus. Sed at mi et elit interdum scelerisque vitae eu felis.[/tab][/plugin]
  </code></pre>
  
  <p>What it should match:</p>
  
  <pre><code>[plugin:tabs]
  </code></pre>
  
  <p>What it keeps matching:</p>
  
  <pre><code>[plugin:tabs][tab title="test"]
  </code></pre>
  
  <p>The regex:</p>
  
  <pre><code>(\[plugin:(?&lt;identifier&gt;[^\s]+)(?&lt;parameters&gt;.*?)\])
  </code></pre>
  
  <p>EDIT:
  What it should also match:</p>
  
  <pre><code>[plugin:tabs test="test"]
  </code></pre>