class MongoRegex (View source)

Properties

string $regex
string $flags

Methods

__construct(string $regex)

Creates a new regular expression.

string
__toString()

Returns a string representation of this regular expression.

Details

__construct(string $regex)

Creates a new regular expression.

Parameters

string $regex

Regular expression string of the form /expr/flags

string __toString()

Returns a string representation of this regular expression.

Return Value

string

This regular expression in the form "/expr/flags".