In MongoDB, the _______ operator can be used to test a regular expression against a string.

  • $search
  • $match
  • $regex
  • $find
In MongoDB, the $regex operator is used to test a regular expression against a string. It allows you to perform pattern matching on string fields in your documents. This is useful for querying and filtering data based on specific patterns or text matching requirements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *