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;
MongoRegex::__construct 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