I'm working with Java and I got a db, SQLite 3.8.5, with 2 Columns, ID(int key)
and note(string)
.
I want to be able to query for all notes containing multiple words.
Example:
Note1: "Hello, this movie is foo"
Note2: "Hello, this movie is yellow"
Note3: "Hello, foo this movie is" (Yoda, don't type!)
Given filter words by user: "foo" "movie"
Result from query should be Note 1 and Note 2.
This regex works but I cant seem to find how ask regex as query: .*(?=.*movie)(?=.*foo).*
BR