Hi There,
I understand we can use regex to make case insensitive find off of a string with the 'i' option. (i.e. mongoose.model.find({ username : /^user/i }, callback ).
Yet how does one do such a thing when instead of a the regex we have a variable? Of course though we could ensure case insensitivity at database entry and pattern matching, that would be undesirable.
thank you,
John