powered by
mongo.bson.buffer.append.regex(buf, name, value)
mongo.regex.create()
mongo.bson.buffer.append.regex
mongo.bson.buffer.append
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)
Run the code above in your browser using DataLab