Description Details See Also Examples
Objects of class "mongo.regex" represent regular expressions and are strings with the options value stored in the "options" attribute.
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()
.
mongo.regex.create
,
mongo.bson.buffer.append
,
mongo.bson.buffer.append.list
,
mongo.bson.buffer,
mongo.bson.
1 2 3 4 | buf <- mongo.bson.buffer.create()
regex <- mongo.regex.create("acme.*corp", options="i")
mongo.bson.buffer.append.regex(buf, "MatchAcme", regex)
b <- mongo.bson.from.buffer(buf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.