I have this:
let query = {
title: {
$regex: ".*" + req.params.term + ".*"
}
}
Which helps me to find "Tel Aviv" in the collection using the "v" or "viv" or "T" or "A" in the term.
However when I am trying to search for "t" or "a" which are inside the string but are need to be capital - it returns nothing.
How to set a good regex which results with "LIKE" function as I have now but also with aware of capital letters?
Thanks.