File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -585,15 +585,9 @@ Where the values are as follows:
585
585
586
586
- ``"<options>"``
587
587
588
- - A string that specifies BSON regular expression options ('g', 'i',
589
- 'm' and 's') or an empty string ``""``.
590
-
591
- - Options other than ('g', 'i', 'm' and 's') will be dropped when
592
- converting to this representation.
593
-
594
- .. important::
595
-
596
- The options MUST be in alphabetical order.
588
+ - A string that specifies BSON regular expression options. You must specify
589
+ the options in alphabetical order. For information on the supported options,
590
+ see :query:`$options`.
597
591
598
592
.. bsontype:: Timestamp
599
593
Original file line number Diff line number Diff line change @@ -87,16 +87,14 @@ expression.
87
87
88
88
.. list-table::
89
89
:header-rows: 1
90
- :widths: 10 60 30
90
+ :widths: 20 80
91
91
92
92
* - Option
93
93
- Description
94
- - Syntax Restrictions
95
94
96
95
* - ``i``
97
96
- Case insensitivity to match upper and lower cases. For an
98
97
example, see :ref:`regex-case-insensitive`.
99
- -
100
98
101
99
* - ``m``
102
100
@@ -110,8 +108,6 @@ expression.
110
108
no newline characters (e.g. ``\n``), the ``m`` option has no
111
109
effect.
112
110
113
- -
114
-
115
111
* - ``x``
116
112
117
113
- "Extended" capability to ignore all white space characters in
@@ -128,20 +124,21 @@ expression.
128
124
The ``x`` option does not affect the handling of the VT
129
125
character (i.e. code 11).
130
126
131
- - Requires ``$regex`` with ``$options`` syntax
132
-
133
127
* - ``s``
134
128
135
129
- Allows the dot character (i.e. ``.``) to match all
136
130
characters *including* newline characters. For an example,
137
131
see :ref:`regex-dot-new-line`.
138
132
139
- - Requires ``$regex`` with ``$options`` syntax
133
+ * - ``u``
134
+
135
+ - Supports Unicode. This flag is accepted, but is redundant. UTF is set by
136
+ default in the ``$regex`` operator, making the ``u`` option
137
+ unnecessary.
140
138
141
139
.. note::
142
140
143
- The ``$regex`` operator does not support the global search
144
- modifier ``g``.
141
+ The ``$regex`` operator *does not* support the global search modifier ``g``.
145
142
146
143
Behavior
147
144
--------
You can’t perform that action at this time.
0 commit comments