Master the $regex operator in MongoDB to perform pattern matching similar to SQL's LIKE.