Re: [apps-discuss] Fun with URLs and regex

Bjoern Hoehrmann <derhoermi@gmx.net> Sat, 31 January 2015 01:03 UTC

Return-Path: <derhoermi@gmx.net>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3DC671A87F1 for <apps-discuss@ietfa.amsl.com>; Fri, 30 Jan 2015 17:03:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 5fTxHh6H2jID for <apps-discuss@ietfa.amsl.com>; Fri, 30 Jan 2015 17:03:30 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5FC0A1A87E3 for <apps-discuss@ietf.org>; Fri, 30 Jan 2015 17:03:30 -0800 (PST)
Received: from netb ([89.204.130.253]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Ls7MZ-1XX3cB027r-013uVm; Sat, 31 Jan 2015 02:03:25 +0100
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: Matthew Kerwin <matthew@kerwin.net.au>
Date: Sat, 31 Jan 2015 02:03:23 +0100
Message-ID: <3q9ocahuoib4jefhviph72eb7luve7fbna@hive.bjoern.hoehrmann.de>
References: <54AEB660.1020701@intertwingly.net> <F122ADA8-4A96-4F88-BB9F-3C5C6A544067@mnot.net> <54C84872.5040902@intertwingly.net> <EF1E36FA-6A30-4A65-9520-5A31571EE445@mnot.net> <54C95132.2060402@gmx.de> <154ABFBB-AB8C-447A-89A3-D1746EFBF1C6@gbiv.com> <54C95AF7.6030703@gmx.de> <CACweHNBHiEGUwLB3z6YoTexF=b9ApwsUy6-DVCf9vnBSD+L5Rw@mail.gmail.com> <E6AB5A9F-D1DF-45A2-AAEF-FCF2752FD254@gbiv.com> <CACweHNAitEigzDkxOrnR9fkCeMG=ft8g6cVvpmtBrPMMp9xOeA@mail.gmail.com>
In-Reply-To: <CACweHNAitEigzDkxOrnR9fkCeMG=ft8g6cVvpmtBrPMMp9xOeA@mail.gmail.com>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:hAlgBZRqJ2DK6cVtwMKs9/jN2H6oCCfW1vetq+crcS+Pu09zstp xyHP77CXYe8K4RBrzO8QyS9ZRC7RC7okamAJ3ylWmB1BKc/S0BbZG+sh6zEYzr5BftqN3pG gk34YtcvIPq8y51J5gMFT3PP3p7yjTqmWdXvRm+80LDffbEWkqu85bMPtvXt4kWnCA3cKim EGZLayE44mOiIxi1wDoDg==
X-UI-Out-Filterresults: notjunk:1;
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/e0Y2R0mN_5IO1T2zPpW5Xqh955I>
Cc: IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Fun with URLs and regex
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 31 Jan 2015 01:03:33 -0000

* Matthew Kerwin wrote:
>I'm still suffering a misalignment: RFC 3986 defines the whole generic URI
>syntax as:
>
>    URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
>
>and my draft that references it essentially defines (or will soon define)
>the whole file-URI syntax as:
>
>    file-URI = subset-of-scheme ":" subset-of-hier-part

Think of this as

  URI = scheme ":" scheme-specific-part [ "#" fragment ]

And the logic is: if $scheme is 'file' then whatever is matched by
`scheme-specific-part` must also match such and such.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de
 Available for hire in Berlin (early 2015)  · http://www.websitedev.de/