Re: [Jsonpath] Regular expressions in filters

Glyn Normington <glyn.normington.work@gmail.com> Wed, 12 May 2021 15:51 UTC

Return-Path: <glyn.normington.work@gmail.com>
X-Original-To: jsonpath@ietfa.amsl.com
Delivered-To: jsonpath@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AFC723A0CDF for <jsonpath@ietfa.amsl.com>; Wed, 12 May 2021 08:51:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TbEblW8zIbXQ for <jsonpath@ietfa.amsl.com>; Wed, 12 May 2021 08:51:07 -0700 (PDT)
Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8301C3A0CDC for <jsonpath@ietf.org>; Wed, 12 May 2021 08:51:07 -0700 (PDT)
Received: by mail-pf1-x431.google.com with SMTP id 10so18962428pfl.1 for <jsonpath@ietf.org>; Wed, 12 May 2021 08:51:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xRFNG+bkS1i7pQc83YpvFMstsECCMDIy1v1ak8qaVng=; b=nDuQYxeZrLtGQ0FtLbAYSoxvY76vMMUl2w/jpkbeopTiSnzcX0Gxxy1RuKQB2pQJev OZ4wSiBF+uSCPf8vUgcMcsWZr9b1bUKDFJ4r8tQ7hugxPEn+3YDcvsXTkihc4d5AtMhA f5bPLuWqdkrW6VqnSs1x7t4osj/tMGul9NZDn6NNIwHWLFf64BUQijJqtmTVr8DxDxfD 8als0i8xRG8vqmSVfFik6Lq/m8ExczHMfIiywGYDOL6K3r2aBq3iAsqgu1f5pdBp0T6l 1TxixV+RyhUyxFBdf6AU9mC1jdax/wjaQ0AdXT72Zco5HQVX2Igag25qjGIaqfpGVNSf xXsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xRFNG+bkS1i7pQc83YpvFMstsECCMDIy1v1ak8qaVng=; b=apcjhNANORGlghlivP0mnZe9vjbHR5aAUexcue6dOZGiZmIxj2HSDKs8+hjP2de258 t+XpXTSasEPD2lGOJAxOjWLH9VIwJ2LyYn5QUzfxFnkBo7eLf86yXnMKT37H0EWvQXYb pSgr7eZqyxaGciNZYttD1mtvzB0NiLdcf126ysengapuvCVYYMEJmqSTyopwpsj7MCOR v5p7h3dFIKyolDTJGqaCKpWOVzFTDelVDrXA4+S7g2/rFEluWqUKQLUSHXIXi6sjNQPn phfWZe+28YVTbcuybawvvufx53ZCzTNKt3cSUWsAswSSlGO6g2ziPh/5hKdFMBxgCqJH cbhQ==
X-Gm-Message-State: AOAM532Uel2MYHi882XsuLYq9clxx8zU6laU/j3rbCMgqGbbJAosjDZu 2m9KpK8r3Dr0RQcH7jggTZYQPETMJNl+yO+Kq51Fg+Y1wtE=
X-Google-Smtp-Source: ABdhPJz4idckMrQfYR6kFhdvaHxyrZ+k4C5H15A0sSSvDTHqHQb+5c5HmEugvZrCSizRIk1gzRoSkODiLl8FkM9XbpM=
X-Received: by 2002:a62:c504:0:b029:28e:b070:db71 with SMTP id j4-20020a62c5040000b029028eb070db71mr35672926pfg.55.1620834666467; Wed, 12 May 2021 08:51:06 -0700 (PDT)
MIME-Version: 1.0
References: <CAHBU6isFeWwv8wvdJhSbsDPA9gP0mmfzPRi3p-9iuAwyGMRvvQ@mail.gmail.com> <48922359-ABF5-4894-952B-F0085A1BF257@tzi.org>
In-Reply-To: <48922359-ABF5-4894-952B-F0085A1BF257@tzi.org>
From: Glyn Normington <glyn.normington.work@gmail.com>
Date: Wed, 12 May 2021 16:50:55 +0100
Message-ID: <CANH0Gb+4+THF3sByoVuy1eLDYyfvAprryfRM4wC9Yg=duaQHDA@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Tim Bray <tbray@textuality.com>, jsonpath@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/jsonpath/zvm61aL4Gci3iR4ObCHmivOoPvM>
Subject: Re: [Jsonpath] Regular expressions in filters
X-BeenThere: jsonpath@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: A summary description of the list to be included in the table on this page <jsonpath.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jsonpath>, <mailto:jsonpath-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jsonpath/>
List-Post: <mailto:jsonpath@ietf.org>
List-Help: <mailto:jsonpath-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jsonpath>, <mailto:jsonpath-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 May 2021 15:51:13 -0000

On Wed, 12 May 2021 at 14:03, Carsten Bormann <cabo@tzi.org> wrote:
>
> On 2021-05-09, at 20:28, Tim Bray <tbray@textuality.com> wrote:
> >
> > Regular expressions in filters?
> > Issue #70: https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/issues/70
>
> We had a good discussion about issue #70 yesterday in the interim.
> I promised to supply a PR.
>
> It turned out that the work that is needed is to a large part reusable in other contexts.

Indeed! In fact, there would be some benefit in keeping this spec,
together with a compliance test suite and reference implementation
separate so it could be reused in other contexts and would avoid
bloating the JSONPath spec/CTS/RI.

>
> So instead of writing the PR, I submitted a separate Internet-draft first.
> This should supply the answer to the question what flavor of regexps we want to use:
>
> https://www.ietf.org/archive/id/draft-bormann-jsonpath-iregexp-00.html

This looks good to me, at least as a starting point.

>
> If we like this approach (which certainly needs a bit more work, as we want to make sure we hit the right level of complexity), I can supply the PR that anchors this specification in the jsonpath specification.

Not sure what you mean by "anchors". Would you refer to this spec from
the JSONPath spec (my preferred option - see above) or copy it in
place?
>
> Grüße, Carsten
>
> --
> Jsonpath mailing list
> Jsonpath@ietf.org
> https://www.ietf.org/mailman/listinfo/jsonpath