Say I have a query like this: "one two three", if I replace with spaces with | (pipe character) I can match a string if it contains one or more of those words. This is like a logical OR.
Is there something similar that does a logical AND. It should match regardless of word ordering as long as all the words are present in the string.
Unfortunately I'm away from my Mastering Regular Expressions book :(
Edit: I'm using Javascript and the query can contain any amount of words.