MongoRegex::__construct Creates a new regular expression &reftitle.description; MongoRegex::__construct stringregex Creates a new regular expression. &reftitle.parameters; regex Regular expression string of the form /expr/flags. &reftitle.returnvalues; Returns a new regular expression. &reftitle.examples; <function>MongoRegex::__construct</function> example This example uses a regular expression to query for all documents with a username field matching a regular expression. find(array("username" => $joe_search)); ?> ]]> &reftitle.seealso; MongoRegex::__toString