title: How to exclude a word from regex subpattern?
body: <p>I am using Delphi 7 and TDIPerlRegEx. I am looking for verbs in parts of sentence which contain some specific part to identify the verb.</p>
  
  <pre><code>s1 := '(I|you|he|she|it|we|they|this|that|these|those)';
  s2 := (can|should|would|could|must|want to|have to|had to|might);
  RegEx_Seek_1.MatchPattern := '(*UCP)(?m) \b'+s1+'\b \b'+s2+'\b \K([^ß\W]\w{2,15})\b';
  </code></pre>
  
  <p>The key word which is wrongly included in result is "not"; but should be exluded:</p>
  
  <p>Sample text:</p>
  
  <p>... that you should <strong>not</strong> ßeat of every ...</p>
  
  <p>Verb like this should be included in result:
  Sample text:</p>
  
  <p>lest he should <strong>put</strong> forth his hand ...</p>
  
  <p>Now I would explain the part with ß sign. The ß sign says, that the original text had "not" word, and then the verb is followed. But I changed this text in previous interaction or session so the source text which I am working now is as stated above. The pattern <code>([^ß\W]\w{2,15})</code> should avoid the word which is used in negative sense. This is also why do not include the "negative" verb.</p>
  
  <p>So point of the question is how to exclude the "not" word from the captured text; that is - captured by this pattern, which is either <code>([^ß\W]\w{2,15})</code> or <code>(\W{3,15})</code> . </p>
  
  <p>I am using this pattern to replace substrings in text.</p>
  
  <p>More sample text needed?</p>
  
  <blockquote>
    <p>than I can <strong>bear</strong>.  And </p>
    
    <p>so I might have <strong>taken</strong> her </p>
    
    <p>they might <strong>dwell</strong> together</p>
    
    <p>they could <strong>not</strong> ßdwell together</p>
    
    <p>lest you should <strong>say</strong>,</p>
  </blockquote>
  
  <p>In group 3 I expect match:
  for <code>bear</code>, <code>taken</code> (or posibly <code>have</code> instead of taken), <code>dwell</code> and <code>say</code>.
  I am trying to exclude the <code>not</code> word, so any verb or word following <code>not</code> must be excluded from 3rd group or the match completely. I am interested about group 3 only. Group 1 and 2 just specifies alternatives preceding the verb.</p>