I cannot find a way to find a row where has ALL the 3 words (or more) with a regexp:
example
input words: "comp abc 300"
should match: "abcdef compres 300" and "ascompr zazabcd 9300"
I have a loop at the moment with a regexp that returns this:
(.*comp.*)(.*abc.*)(.*300.*)
but only matches in this order. I would like it to match in every order like in the example
it’s just like 3 like with and between in them in SQL.
Thanks 😉
Positive lookahead is what you need:
More info at http://www.regular-expressions.info/lookaround.html