<div>I can see a difference from the example on the manual:</div>
<div><br /></div>
<div>you have       !([word=&quot;en&quot;][word=&quot;tierra&quot;])</div>
<div>while following the example you should have        !(word=&quot;en&quot;
word=&quot;tierra&quot;)</div>
<div><br /></div>
<div>the [ ] square brackets enclosure all the expression not every part, at least at the
exemple...<br /></div>
<div><br /></div>
<div>try that!<br /></div>
<div><br /></div>
<div><br /></div>
El Mar, 28 de Julio de 2020, 21:22, Josep M. Fontana escribi&oacute;:<br /> <!-- begin
sanitized html -->
<div class="bodyclass">
<p>Hi Andr&eacute;s,</p>
<p>Yes, you understand correctly. In this search that I gave as an       example:</p>
<p>[(word=&quot;f[ei]rid.*&quot;)|(word=&quot;muert[ao].*&quot;)] !(([(pos=&quot;S.*&quot;)   
   &amp;
(word=&quot;d.*&quot;)][word=&quot;.*el&quot;][word=&quot;ca[buv]allo.*&quot;])|[word=&quot;entierra&quot;]|([word=&quot;en&quot;][word=&quot;tierra&quot;]))</p>
<p>I want an expression matching any of the patterns within the       first pair of square
brackers '[ ]' followed by any words or word       groups that are NOT either &quot;del
cauallo&quot; (or any of its       variations), &quot;entierra&quot; or &quot;en tierra&quot;.
<br />     </p>
<p>If I place the ! before the parenthesis enclosing the rest of       word groups, I still
get &quot;muerto en tierra&quot;. If I place it before       the parenthesis including the
word group &quot;en tierra&quot; (like this ➝      
!([word=&quot;en&quot;][word=&quot;tierra&quot;])&nbsp; I still get &quot;muerto en
tierra&quot;. <br />     </p>
<p>I assume the example that appears in the manual (i.e.       [(lemma=&quot;go&quot;) &amp;
!(word=&quot;went&quot;%c | word=&quot;gone&quot;%c)]; ) works but       I'm wondering whether
the '!' operator only works when it appears       within a group enclosed in '[ ]'.</p>
<p>The kind of regular expression I'm using cannot be all included       within '[ ]'. When I
don't use the ! operator it works perfectly       and I get &quot;muerto en tierra&quot;,
&quot;muerto entierra&quot;, &quot;muerto del       cavallo&quot;, etc. Why can't I negate the
whole thing by placing a       single ! somewhere? I've tried placing the ! after the first   
   parenthesis and it doesn't work either.</p>
<p>JM<br />     </p>
<p><br />     </p>
<blockquote type="cite" cite="mid:82e1aca978961bb1a27ce5b44128a068.squirrel@mail.chandia.net">
<div>Maybe I'm wrong, but I understand that you want nothing from         the ! on....</div>
<div><br />       </div>
<div>check this regex from the manual:</div>
<div><br />       </div>
<div><span style="left: 139.943px; top: 725.685px; font-size:           18.1818px;
font-family:           monospace; transform: scaleX(0.437423);"> [(lemma=&quot;go&quot;) &amp;
          !(word=&quot;went&quot;%c | word=&quot;gone&quot;%c)];</span></div>
<div><br />       </div>
<div><br />       </div>
<div>I hope it is what you're looking for, if so, it is just a         thing of
notation....<br />       </div>
<div><br />       </div>
<div><br />       </div>
<div><br />       </div>
El Mar, 28 de Julio de 2020, 19:56, Josep M. Fontana escribi&oacute;:<br />
<div class="bodyclass">
<p>Thanks Andrews and/or Andreses for your quick responses,<br />         </p>
<p>I have had problems with both of our suggestions. In           principle I would like to
use a           single ! operator for the whole regular expression pattern           rather
than having to add it           to every relevant subpattern. <br />         </p>
<p>But wherever I place the '!' i don't seem to get the desired           results. So, if I do
the           following:</p>
<p>[(word=&quot;f[ei]rid.*&quot;)|(word=&quot;muert[ao].*&quot;)] !(([(pos=&quot;S.*&quot;)   
       &amp;
(word=&quot;d.*&quot;)][word=&quot;.*el&quot;][word=&quot;ca[buv]allo.*&quot;])|[word=&quot;entierra&quot;]|([word=&quot;en&quot;][word=&quot;tierra&quot;]))</p>
<p>one of the first hits I get is:<br />         </p>
<p><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);             font-family:
verdana;             font-size: 13.333333015441895px; font-style: normal;            
font-variant-caps: normal;             font-weight: normal; letter-spacing: normal; orphans:
auto;             text-align: -webkit-left; text-indent: 0px; text-transform:            
none; white-space: normal; widows:             auto; word-spacing: 0px;
-webkit-text-size-adjust: auto;             -webkit-text-stroke-width:             0px;
background-color: rgb(194, 211, 218); text-decoration:             none; display:            
inline !important; float: none;"><span class="Apple-converted-space">&nbsp;</span>cayo<span
class="Apple-converted-space">&nbsp;</span><span
class="Apple-converted-space">&nbsp;</span></span><strong style="caret-color: rgb(0, 0, 0);   
         color: rgb(0, 0, 0); font-family: verdana; font-size:            
13.333333015441895px; font-style: normal; font-variant-caps:             normal;
letter-spacing: normal; orphans: auto;             text-align: -webkit-left; text-indent: 0px;
text-transform:             none; white-space: normal;             widows: auto; word-spacing:
0px; -webkit-text-size-adjust:             auto; -webkit-text-stroke-width: 0px;
text-decoration:             none;">muerto<span
class="Apple-converted-space">&nbsp;</span><span
class="Apple-converted-space">&nbsp;</span></strong><span style="caret-color: rgb(0, 0, 0);   
         color: rgb(0, 0, 0); font-family: verdana; font-size:            
13.333333015441895px; font-style: normal; font-variant-caps:             normal; font-weight:
normal; letter-spacing:             normal; orphans: auto; text-align: -webkit-left;          
  text-indent: 0px; text-transform:             none; white-space: normal; widows: auto;
word-spacing: 0px;             -webkit-text-size-adjust: auto; -webkit-text-stroke-width:     
       0px; background-color:             rgb(194, 211, 218); text-decoration: none; display:
inline             !important; float:             none;">en tierra</span></p>
<p>This should be out because the last of the word groups that I           have is          
([word=&quot;en&quot;][word=&quot;tierra&quot;]). Shouldn't the ! operator have          
scope           over the last group as well?</p>
<p>Josep M.<br />         </p>
<div class="moz-cite-prefix"><br />         </div>
<blockquote type="cite"
cite="mid:CAKTDfKeTwgJoXuzxkDq=AohUO3mpf5ZdGrmniYoE-QeskQYKbA@mail.gmail.com">
<div>
<div dir="auto">Hey Josep,</div>
</div>
<div dir="auto"><br />           </div>
<div dir="auto">I'm fairly sure you just use ! if you're not             testing a specific   
         annotation. Place ! before the left parenthesis of the group             you're
trying to test. So             if you're trying to test the negation of that entire group,    
        just add ! to the             front of it. See 2.6 in the CQP Tutorial.</div>
<div dir="auto"><br />           </div>
<div dir="auto">All the best,</div>
<div dir="auto"><br />           </div>
<div dir="auto">Andrew</div>
<div dir="auto"><br />           </div>
<div dir="auto"><br />           </div>
<div><br />
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 28, 2020 at                 11:15 AM Josep M.   
             Fontana <a class="moz-txt-link-abbreviated" href="mailto:josepm.fontana@upf.edu"
target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">josepm.fontana@upf.edu</a>&gt; wrote:<br />               </div>
<blockquote class="gmail_quote" style="margin:0 0 0                 .8ex;border-left:1px #ccc 
               solid;padding-left:1ex">Hi,<br />                 <br />                 I
don't know whether this is                 the right forum to ask this particular kind <br /> 
               of question but I                 figure there are enough people here with
sufficient <br />                 experience                 to lend me a hand with this
problem. If you cannot                 answer the <br />                 question but you can
point me to some other forum/group                 where I can find <br />                
help, I would appreciate it.<br />                 <br />                 So, I have the      
          following regular expression to identify a set of <br />                 expressions
                that can appear in a particular position in the text.                 What I
<br />                 would like to do is to create the negation of this                
regular expression. <br />                 That is, any string/expression/group of expressions
that                 does NOT <br />                 contain the expressions in these
groups.<br />                 <br />                 I know                 how to use the !=
operator for a particular item (word,                 pos, <br />                 lemma) but
where would one insert this operator to have                 scope over the <br />            
    whole group of expressions that match this pattern?                 Thanks in advance.<br
/>                 <br />                 (([(pos=&quot;S.*&quot;) &amp; <br />
(word=&quot;d.*&quot;)][word=&quot;.*el&quot;][word=&quot;ca[buv]allo.*&quot;])|[word=&quot;entierra&quot;]|([word=&quot;en&quot;][word=&quot;tierra&quot;]))<br
/>                 <br />                 <br />                 Josep M.<br />               
 <br />                 <br />                
_______________________________________________<br />                 CWB                
mailing list<br />                 <a href="mailto:CWB@sslmit.unibo.it" moz-do-not-send="true"
title="Este enlace externo se abrirá en una nueva ventana"
target="_blank">CWB@sslmit.unibo.it</a><br />                 <a
href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer"
moz-do-not-send="true" title="Este enlace externo se abrirá en una nueva ventana"
target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br />              
</blockquote>             </div>
</div>
<br />           <fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________ CWB mailing
list <a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it" title="Este enlace
externo se abrirá en una nueva ventana" moz-do-not-send="true"
target="_blank">CWB@sslmit.unibo.it</a> <a class="moz-txt-link-freetext"
href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" title="Este enlace externo se abrirá
en una nueva ventana" moz-do-not-send="true"
target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a> </pre>
</blockquote>       </div>
<br />       <br />       <br />       _______________________<br />      
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andr&eacute;s      
chand&iacute;a<br />       <a href="http://www.chandia.net" moz-do-not-send="true"
target="_blank" title="Este enlace externo se abrirá en una nueva ventana"><img
src="../images/spacer.png" alt="chandia.net" moz-do-not-send="true" border="0" /></a> <a
href="https://twitter.com/chandianet" moz-do-not-send="true" target="_blank" title="Este
enlace externo se abrirá en una nueva ventana"><img src="../images/spacer.png" alt=""
moz-do-not-send="true" width="20" height="20" /></a><br />       <a
href="http://chandia.net/content/dungupeyem" title="Este enlace externo se abrirá en una nueva
ventana" moz-do-not-send="true" target="_blank">D&uuml;ngupeyem</a> | <a
href="http://chandia.net/content/iecmap" title="Este enlace externo se abrirá en una nueva
ventana" moz-do-not-send="true" target="_blank">IECMap</a>       | <a
href="http://chandia.net/content/isecmap" title="Este enlace externo se abrirá en una nueva
ventana" moz-do-not-send="true" target="_blank">ISECMap</a> | <a
href="http://chandia.net/content/nmt" title="Este enlace externo se abrirá en una nueva
ventana" moz-do-not-send="true" target="_blank">NMT</a> | <a href="http://corlexim.cl"
title="Este enlace externo se abrirá en una nueva ventana" moz-do-not-send="true"
target="_blank">Corlexim</a><br />       <br />      <br />Desarrollador de:<br />       <a
href="https://parles.upf.edu" moz-do-not-send="true" target="_blank" title="Este enlace
externo se abrirá en una nueva ventana">Parles.upf</a>       | <a href="https://iwch.upf.edu"
title="Este enlace externo se abrirá en una nueva ventana" moz-do-not-send="true"
target="_blank">IWCH</a>       | <a href="http://amindterapia.com" moz-do-not-send="true"
target="_blank" title="Este enlace externo se abrirá en una nueva ventana">Amind        
terapia</a> | <a href="http://koyaktumapuche.net" moz-do-not-send="true" target="_blank"
title="Este enlace externo se abrirá en una nueva ventana">ONG         Mapuche koyaktu</a> |
<a href="https://parles.upf.edu/llocs/nocando" moz-do-not-send="true" target="_blank"
title="Este enlace externo se abrirá en una nueva ventana">Nocando</a> | <a
href="https://iac.upf.edu" moz-do-not-send="true" target="_blank" title="Este enlace externo
se abrirá en una nueva ventana">IAC</a> | <a href="https://iac.upf.edu/cddz"
moz-do-not-send="true" target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">CddZ</a>       | <a href="https://iac.upf.edu/isac" moz-do-not-send="true"
target="_blank" title="Este enlace externo se abrirá en una nueva ventana">ISAC</a>       | <a
href="http://catcg.upf.edu" moz-do-not-send="true" target="_blank" title="Este enlace externo
se abrirá en una nueva ventana">CatCg</a><br />       <span style="font-size: 18pt; color:
rgb(79, 98, 40); font-family:         Webdings;">P</span> <span style="font-size: 10pt; color:
        rgb(79, 98, 40);">No imprima innecesariamente. &iexcl;Cuide el         medio
ambiente!</span>       <br />       <fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________ CWB mailing
list <a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it" target="_blank"
title="Este enlace externo se abrirá en una nueva ventana">CWB@sslmit.unibo.it</a> <a
class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb"
target="_blank" title="Este enlace externo se abrirá en una nueva
ventana">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a> </pre>
</blockquote>   </div>
<!-- end sanitized html --> <br /><br /><br />_______________________<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andr&eacute;s
chand&iacute;a<br /><a href="http://www.chandia.net" target="_blank"><img
src="http://mail.chandia.net/images/chandia_net.png" alt="chandia.net" border="0" /></a> <a
href="https://twitter.com/chandianet" target="_blank"><img
src="http://mail.chandia.net/images/ico_tw.png" width="20" height="20" alt="" /></a><br /><a
href="http://chandia.net/content/dungupeyem" title="Analizador y generador mofológico de
mapudüngun">D&uuml;ngupeyem</a> | <a href="http://chandia.net/content/iecmap" title="Interfaz
de explotación de corpus del mapudüngun">IECMap</a> | <a
href="http://chandia.net/content/isecmap" title="Interfaz sencilla de explotación de corpus
del mapudüngun">ISECMap</a> | <a href="http://chandia.net/content/nmt" title="Unificador
ortográfico de mapudüngun">NMT</a> | <a href="http://corlexim.cl" title="Corpus lexicográfico
de mapudüngun">Corlexim</a><br /><br />Desarrollador de:<br /><a
href="https://parles.upf.edu">Parles.upf</a> | <a href="https://iwch.upf.edu"
title="Interfície Web de Consulta d'Horaris UCA TCL UPF">IWCH</a> | <a
href="http://amindterapia.com">Amind terapia</a> | <a href="http://koyaktumapuche.net">ONG
Mapuche koyaktu</a> | <a href="https://parles.upf.edu/llocs/nocando">Nocando</a> | <a
href="https://iac.upf.edu">IAC</a> | <a href="https://iac.upf.edu/cddz">CddZ</a> | <a
href="https://iac.upf.edu/isac">ISAC</a> | <a href="http://catcg.upf.edu">CatCg</a><br /><span
style="font-size: 18pt; color: rgb(79, 98, 40); font-family: Webdings;">P</span> <span
style="font-size: 10pt; color: rgb(79, 98, 40);">No imprima innecesariamente. &iexcl;Cuide el
medio ambiente!</span>