def _get_regex(data, position, dummy0, opts, dummy1):
 (pattern, position) = _get_c_string(data, position, opts)
 (bson_flags, position) = _get_c_string(data, position, opts)
 bson_re = Regex(pattern, bson_flags)
 return (bson_re, position)

def _get_regex ( data , position , dummy0 , opts , dummy1 ) : ( pattern , position ) = _get_c_string ( data , position , opts ) ( bson_flags , position ) = _get_c_string ( data , position , opts ) bson_re = Regex ( pattern , bson_flags ) return ( bson_re , position )
decode a bson regex to bson .