Number of matching regular expression in a text

constantrietsch
constantrietsch New Altair Community Member
edited November 5 in Altair RapidMiner
Hello,

I need to find the number of matching regular expression in a text.

For the moment i'm using the Extract Information operator inside a Process Documents operator to match this regular expression (word1\W+(?:\w+\W+){1,6}?word2). This is working but i only get, as a result, the first match.

How can i get the number of total match in a document, as i'm looking for two near words (i can't count them separatly)?


Who has an idea for me?

Thank you!!!