I need to make a reg expression that will match following conditions:
1) mathing only if it has three words 2) not separated or separated by semicolon (;) 3) in any order 4) all of words should be included, otherwise it will not match
I tried this one:
^(?=(.*;|)one)(?=(.*;|)two)(?=(.*;|)three).*$
but somehow it mathes variants like oneasfafasfsaf;two;three it`s wrong
please, help!
P.S. sometimes it`s needed to have more than three, but i want to understand the core