Description Usage Arguments Value See Also Examples
Append a regular expression value into a mongo.bson.buffer.
1 | mongo.bson.buffer.append.regex(buf, name, value)
|
buf |
(mongo.bson.buffer) The buffer object to which to append. |
name |
(string) The name (key) of the field appended to the buffer. |
value |
(mongo.regex) A regular expression as created |
TRUE if successful; otherwise, FALSE if an error occured appending the data.
mongo.regex.create,
mongo.bson.buffer.append.regex
,
mongo.bson.buffer.append
,
mongo.bson,
mongo.bson.buffer.
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.