title: Regex to match string with contains closed brackets
body: <p>I need to create regex rule to match string with doesnt' contain <code>(</code> <code>)</code> character and also strings that have them inside but always closed (but not nested. Another thing that empty <code>()</code> is also wrong</p>
  
  <p>Good strings (should be matched):</p>
  
  <pre><code>aaaaaa
  (asdasd)
  aaaa(bbb)a
  (aaa)aaaa
  aaaaaa(aaaa)
  aaaa(bbb)(ccc)ddd
  aaaa(bbbb)cccc(dddd)eeee
  </code></pre>
  
  <p>Bad strings (there shouldn't be match):</p>
  
  <pre><code>)aaaa
  )aaaa(asd)
  aaaaaa(
  aaaa(bbb))
  aaa(bbb
  aaaaa((bbbb)cccc
  aaaa(bbbb))ccc
  aaaa(aasd(adssad))ad
  adassd(aas(add)adsa(asda)ad)
  ()
  </code></pre>
  
  <p>Tried and created something like this <code>(?!.*[(]{2,})(?!.*[)]{2,})(?![)])(?!.*[(]$).*$</code> but still it isn't good. Any help with this?</p>