DOKK / manpages / debian 10 / libbson-doc / bson_iter_regex.3.en
BSON_ITER_REGEX(3) Libbson BSON_ITER_REGEX(3)

bson_iter_regex - bson_iter_regex()

const char *
bson_iter_regex (const bson_iter_t *iter, const char **options);


  • iter: A bson_iter_t.
  • options: A (null).

The bson_iter_regex() function shall retrieve the contents of a BSON_TYPE_REGEX element currently observed by iter.

It is invalid to call this function when not observing an element of type BSON_TYPE_REGEX.

A string containing the regex which should not be modified or freed. options is set to the options provided for the regex.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0