Re: LPEG: character escapes in 're' module
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPEG: character escapes in 're' module
- From: Miles Bader <miles.bader@...>
- Date: 2008年6月12日 18:17:09 +0900
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."