Reverse regex functionality for queries

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The $regex operator allows to search documents having a field which match a given regular expresion passed in the query. However, it would be interesting to have also the opossite: search documents passing a text in the query which is evaluated for matching to a field in the collection storing a regular expresión.

      I wonder if this feature/improvement is already in MongoDB roadmap as it seems it would be useful for several use cases. See for example:

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Fermín Galán Márquez
              Votes:
              22 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: