title: Regex - Match sentence avoiding parentheses
body: <p>I would need to make a regex to match the keywords inside a big text.</p>
  
  <p>An example of the big text could be the following:</p>
  
  <blockquote>
    <p>...another sentence ending Keywords: tag 1, tag 2, tag 3 (may contain
    something like this ref. 1), tag 4 and tag 5. Another sentence
    has begun...</p>
  </blockquote>
  
  <p>The regex has to extract:</p>
  
  <blockquote>
    <p>Keywords: tag 1, tag 2, tag 3 (may contain
    something like that ref. 1), tag 4 and tag 5</p>
  </blockquote>
  
  <p>I have the following code:</p>
  
  <pre><code>\bKeywords:[^\.]+
  </code></pre>
  
  <p>But the problem is that the regex is not avoiding the text inside the parentheses and stops with the dot on "..ref. 1..".</p>
  
  <p>Thank you all!</p>
  
  <p>Note: The word "tag" it is an example, it could be any word.</p>