MongoDB\BSON\Regex::serialize — Serialize a Regex
This function has no parameters.
Returns the serialized representation of the MongoDB\BSON\Regex.