lua-users home
lua-l archive

Re: LPEG: character escapes in 're' module

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


Andrew Zhilin <andrew_zhilin@yahoo.com> writes:
> 2. Only 2 chars change meaning: '\\' and '\]' inside character
> class. ']' already has documented method to be expressed without
> escaping (can be included in the set as the first character, after the
> optional ^). As for '\\' - we can predefine %bslash, or just clarify
> in documentation that someone should use '\\\\' if pattern is
> delimited by single or double quotes.
Wouldn't it be an awful lot less confusing to just use some other
character?
-Miles
-- 
"Though they may have different meanings, the cries of 'Yeeeee-haw!' and
 'Allahu akbar!' are, in spirit, not actually all that different."

AltStyle によって変換されたページ (->オリジナル) /