Q
Regular Expressions
'q' will support basic regular expression syntax along with 'options' used in the MongoDB $regex syntax.
Description | q |
---|---|
A regular expression that will match lists that have 'LD50' or 'LC50' in the name field | {$or: [{name: {$regex: 'LD50'}}, {name: {$regex: 'LC50'}}]} or {name: {$regex: 'L[CD]50'}} |
A regular expression that will match lists that begin with 's' or 'S' in the name field | {name: {$regex: '^s', $options: 'i'}} |