regex-options
Extracts the options (as an xs:string) from a BSON regex value.

Options
The following options are supported:
•i (Case-insensitive): Matches both upper- and lowercase letters (e.g., A matches a).
•m (Multiline): Makes anchors ^ and $ match the start and end of each line, rather than the start and end of the entire string.
•s (Dotall): Allows the dot (.) character to match everything, including newline characters.
•u (Unicode): Enables Unicode support for shorthand character classes like \w (word characters) and \d (digits).
•x (Verbose): Ignores whitespace within the pattern and allows for comments (starting with #), which makes complex patterns easier to read.
Languages
Built-in
Parameters
Name | Type | Description |
|---|---|---|
regex | bson:regex | The BSON regex value from which the options are extracted. |