I'm looking for a way to make a pattern to match all word in an array. I have an array wordlist[] contain all the words. How to make a pattern to see if a string $str will match if $str contain all the words in wordlist[], but doesn't matter about the order or case and must be multiline. I have to use Regular Expression because I will apply this into a SQL statement. Please help. Thanks.