Mongo (current version 2.0. 0) doesn’t allow case-insensitive searches against indexed fields – see their documentation. For non-indexed fields, the regexes listed in the other answers should be fine.7 Kas 2011
Read moreAre MongoDB field names case sensitive?
A database with “” empty string is not a valid database name. Database name cannot be more than 64 bytes. Database name are case-sensitive , even on non-case-sensitive file systems. Thus it is good to keep name in lower case.
Read moreWhat does this regex do?
A regular expression (shortened as regex or regexp; also referred to as rational expression) is a sequence of characters that specifies a search pattern in text . Usually such patterns are used by string-searching algorithms for “find” or “find and replace” operations on strings, or for input validation.
Read moreWhich function string is matches for regular expression given in pattern in case sensitive way?
If you want to find strings that matches a given regular expression pattern, we use the exec function .
Read moreWhat are regex flags?
A flag is an optional parameter to a regex that modifies its behavior of searching . A flag changes the default searching behaviour of a regular expression. It makes a regex search in a different way. A flag is denoted using a single lowercase alphabetic character.
Read moreWhat does regex match return?
The Match(String) method returns the first substring that matches a regular expression pattern in an input string . For information about the language elements used to build a regular expression pattern, see Regular Expression Language – Quick Reference.
Read more