Description Usage Arguments Details Value See Also Examples
Create a mongo.regex object for appending to a buffer with
mongo.bson.buffer.append.regex()
or
mongo.bson.buffer.append()
, or for embedding in a list such
that mongo.bson.buffer.append.list()
will properly insert a
regular expression value into a mongo.bson.buffer object.
1 | mongo.regex.create(pattern, options = "")
|
pattern |
(string) The regular expression. |
options |
(string) Options governing the parsing done with the pattern. |
See http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-RegularExpressions
A mongo.regex object
mongo.regex,
mongo.bson.buffer.append
,
mongo.bson.buffer.append.regex
,
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.