The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Number of matching regular expression in a text


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!!!
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!!!
Tagged:
0