MongoDB\BSON\Regex::__construct Construct a new Regex &reftitle.description; final public MongoDB\BSON\Regex::__construct stringpattern stringflags &reftitle.parameters; pattern (string) The regular expression pattern. The pattern should not be wrapped with delimiter characters. flags (string) The regular expression flags. &reftitle.errors; &mongodb.throws.argumentparsing; &reftitle.examples; <function>MongoDB\BSON\Regex::__construct</function> example ]]> &example.outputs; string(4) "^foo" ["flags"]=> string(1) "i" } ]]> &reftitle.seealso; BSON Types Supported regular expression flags