Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1986

Note supported pattern syntax in MongoDB\BSON\Regex docs

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Docs
    • None

      According to $regex documentation:

      MongoDB uses Perl compatible regular expressions (i.e. "PCRE" ) version 8.42 with UTF-8 support.

      I believe this covers all server-side evaluation of regex patterns since the manual only discusses differing behavior related to Javascript ($regex vs. /pattern/ Syntax), which likely applies to the shell.

      The current docs for MongoDB\BSON\Regex link to documentation for supported flags, but we'd do well to note the supported pattern syntax as well.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: