As the title says , i need to find 2 specific words in a sentence. But they can be in any order and any casing. How do i go about doing this using regex.
E.g. This is a very long sentence used as a test
From that sentence i need to extract the words test and long in any order i.e. test can be first or long can be first.
UPDATE: What i did not mention the first part is it needs to be case insensitive as well