BSONRegex factories & utilities
Returns a BSONRegex
Returns the plain string representation for the given BSONRegex.
Extracts the regex value and flags if that's a BSONRegex.
that