I got about 2000 sentences about fatalities and i would like to filter them on cause.
To begin i want to start with these:
______ fell (*) ______
to the
off the
from the
where ______ is a group of 1 word, and (*) is to the, off the or from the
I tried
(\w*)fell+\s+to\sthe|off\sthe|from\sthe(\w*)
it returns the “off the” etc but it doesn’t look if the word fell was there.
(the groups probably don’t work neither then.)
So what is wrong, I do use fell+ so fell should be there 1 time right?
I would go with
(\\w*)fell\\s[to|off|from\\sthe]\\s*(\\w*)Here’s a little example:
Results in: