In case of text search,
$text performs a text search on the content of the fields indexed with a text index. A $text expression has the following syntax:
$caseSensitive: < boolean>,
$diacriticSensitive: < boolean>
and In case of normal search,it uses PCRE (Perl Compatible Regular Expression) means Unlike text search, we do not need to do any configuration or command to use regular expressions.