Let's suppose we have the string "rice with milk" and another one like "white rice". I want to use a regex to take the second string, or whatever string which have "rice" in it but no "rice with". Talking in sets that would be the set of all the strings that contains "rice" but not "rice with"
I've been trying with extending the functionality of ^ to words and not only to characters, playing with | and groups but I can't find the solution.
ricenot followed byspace followed by with. Is my understanding correct?ricenot followed byspace followed by with