MongoRegex::__construct
Creates a new regular expression
&mongo.alternative.method.note;
MongoDB\BSON\Regex::__construct
&reftitle.description;
public 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 starting (^) with an
l and a vowel ([aeiouy]),
case-insensitive (/i).
find(array("username" => $luke_search));
?>
]]>
&reftitle.seealso;
MongoRegex::__toString