[CWB] Regular expressions with word groups

Josep M. Fontana josepm.fontana at upf.edu
Tue Jul 28 19:11:30 CEST 2020


Hi,

I don't know whether this is the right forum to ask this particular kind 
of question but I figure there are enough people here with sufficient 
experience to lend me a hand with this problem. If you cannot answer the 
question but you can point me to some other forum/group where I can find 
help, I would appreciate it.

So, I have the following regular expression to identify a set of 
expressions that can appear in a particular position in the text. What I 
would like to do is to create the negation of this regular expression. 
That is, any string/expression/group of expressions that does NOT 
contain the expressions in these groups.

I know how to use the != operator for a particular item (word, pos, 
lemma) but where would one insert this operator to have scope over the 
whole group of expressions that match this pattern? Thanks in advance.

(([(pos="S.*") & 
(word="d.*")][word=".*el"][word="ca[buv]allo.*"])|[word="entierra"]|([word="en"][word="tierra"]))


Josep M.




More information about the CWB mailing list