Property | Type | Description | |
---|---|---|---|
$flags | string | ||
$regex | string |
Method | Description | |
---|---|---|
__construct ( string | MongoDB\BSON\Regex $regex ) | Creates a new regular expression. | |
__toString ( ) : string | Returns a string representation of this regular expression. | |
toBSONType ( ) : MongoDB\BSON\Regex | Converts this MongoRegex to the new BSON Regex type |
public __construct ( string | MongoDB\BSON\Regex $regex ) | ||
$regex | string | MongoDB\BSON\Regex | Regular expression string of the form /expr/flags |
public __toString ( ) : string | ||
return | string | This regular expression in the form "/expr/flags". |
public toBSONType ( ) : MongoDB\BSON\Regex | ||
return | MongoDB\BSON\Regex |