[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Pattern matching proposal: %B to match balanced string with specified escape
- From: "Soni L." <fakedme@...>
- Date: Tue, 5 Jan 2016 11:55:37 -0200
On 05/01/16 07:51 AM, Jonathan Goble wrote:
Meh, there's a lib for it
On Tue, Jan 5, 2016 at 3:29 AM, Dirk Laurie <firstname.lastname@example.org> wrote:
2016-01-05 9:50 GMT+02:00 Rena <email@example.com>:
I also wonder about using %b with the same character twice, like: %b"" - the
manual says it expects two different characters, but it'd be nice if we
could do this.
I don't know why the manual says that. It works perfectly well with
the same character twice.
And this proposal would make that even more powerful:
str = [[char str = "this \"is\" a test"]]
char str = "this \"is\" a test"
"this \"is\" a test"
Poof: instant matching of string literals with escape handling, in a
five-character pattern. How cool is that? :-)
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.