From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Thu, 2 May 2013 10:58:30 -0400 From: a@9srv.net Message-ID: In-Reply-To: <20130502132556.GA2653@polynum.com> References: <20130502123825.GA1975@polynum.com> <20130502132556.GA2653@polynum.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Octets regexp Topicbox-Message-UUID: 50b887fc-ead8-11e9-9d60-3106f5b1d025 your exact problem still isn't clear to me, but certainly there've been times when I want to search for some array of characters in a binary blob. i don't believe i've needed anything beyond a literal string of bytes, but i could imagine from there the utility of something regexp-like. i think the answer is just "no, there's no way to do that today". and i'd strongly advise keeping that tool as far away from any discussion of localization or character sets or runes or the like. there's oughtn't be any mode switching or the like: it's utf-8 encoded unicode runes, or it's binary, not characters at all. hex editors are useful sometimes. being able to do more complicated searches/edits/replaces/whatever could be similarly useful sometimes. but don't go anywhere near the character set or localization discussions with it. anthony