lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 16/07/15 07:24 PM, Jonathan Goble wrote:
On Thu, Jul 16, 2015 at 6:17 PM, Soni L. <> wrote:
On 16/07/15 05:44 PM, Jonathan Goble wrote:
On Thu, Jul 16, 2015 at 4:36 PM, Rena <> wrote:
On Jul 16, 2015 6:04 AM, "John Hind" <> wrote:

New character classes are unlikely to break existing code.
Except code that builds patterns from user input and escapes it like
"%W", "%%1").
Solution: forget %^ and %$ completely and use %b (beginning) and %e
(end) instead. Neither of those letters are currently in use for
character classes, so nothing would break, and the letters would be
easy to remember.
%b is already in use, actually, but for %b() or %b[] or %b`'

See "Pattern Item":
Oops, I forgot about that because I never use it, and I didn't scroll
down to the "pattern item" section. Duh.

So just use something else (though I don't know what to suggest). The
main point is to use letters instead of punctuation to avoid breaking
existing code.

%h for home and %e for end?

Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.