mongo.regex: The mongo.regex class

Description Details See Also Examples

Description

Objects of class "mongo.regex" represent regular expressions and are strings with the options value stored in the "options" attribute.

Details

See http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-RegularExpressions

mongo.regex objects have "mongo.regex" as their class so that
mongo.bson.buffer.append() may detect them and append the appropriate BSON regex-typed value to a buffer.

These mongo.regex values may also be present in a list and will be handled properly
by mongo.bson.buffer.append.list() and mongo.bson.from.list().

See Also

mongo.regex.create,
mongo.bson.buffer.append,
mongo.bson.buffer.append.list,
mongo.bson.buffer,
mongo.bson.

Examples

1
2
3
4

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.