Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3130

Regular expression literals can't handle backslashes in agg builder

    • Iteration Zebra

      You can't escape backslashes in a regex literal in the agg builder, but the same regex in the query bar and shell work fine.

      Example: /abc\/123/ will error in the agg builder but not the query. Workaround is to use the "RegExp" object with a string instead of a literal.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: