Class BSONRegExp

A class representation of the BSON RegExp type.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • pattern: string

      The regular expression pattern to match

    • Optionaloptions: string

      The regular expression options

    Returns BSONRegExp

Properties

options: string
pattern: string

Accessors

  • get _bsontype(): "BSONRegExp"
  • Returns "BSONRegExp"

Methods

  • Prints a human-readable string of BSON value information If invoked manually without node.js.inspect function, this will default to a modified JSON.stringify

    Parameters

    • Optionaldepth: number
    • Optionaloptions: unknown
    • Optionalinspect: InspectFn

    Returns string

  • Parameters

    • Optionaloptions: string

    Returns string