I need to construct a regular expression that will filter a group of words that begins and ends with the same word. For example, the life of the free
will output the life of the
and he was and he his the same
will output he was and he
. The two words have to be maximum 10 characters from each other.
Home
/
user-382891
Sebastian's questions
I've been trying to find a way to filter a line that has the word "lemon" and "rice" in it. I know how to find "lemon" or "rice" but not the two of them. They don't need to be next to the other, just one the same line of text.