Answer the question
In order to leave comments, you need to log in
How to disable regular expressions in $regex MongoDB?
Hello.
Need to match "text" in the string "very big text".
The $regex operator does a great job of this as long as there is text in the search!
After all, if you pass the value /(.*)/ to the search string, then everything will be found.
Simply put, you need to prohibit the use of regular expressions in the query.
How to solve such a problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question