(mongodb >=1.2.0)
MongoDB\BSON\Regex::serialize — Serialize a Regex
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
Returns the serialized representation of the MongoDB\BSON\Regex.