---
cases:
  - data: {}
    modules:
      - |
        package generated

        p[x] {
          regex.find_n("a.", "paranormal", -1, __local0__)
          x = __local0__
        }
    note: regexfind/finds all match values
    query: data.generated.p = x
    sort_bindings: true
    want_result:
      - x:
          - - ar
            - an
            - al
