I have vector of strings. I want to match only those, that contain "features." (with optional dot). The matched strings should not contain "ONLY" and "PRACA".
feature.Agencyjna_ONLY # needs to be removed
feature.UoP # needs to be matched
feature.UoD # needs to be matched
feature.PRACA # needs to be removed
featurePRACA # needs to be removed
I used two following constructions, but both of them do not work.
\bfeature\.?[^(ONLY|PRACA)]+\b
\bfeature\.?\w+(?!(ONLY|PRACA))\b
Desired output:
feature.UoP
feature.UoD
Example: regex101
Would be appreciated for any help!