[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scan of regexps in Emacs (March 17)
From: |
Mattias Engdegård |
Subject: |
Re: Scan of regexps in Emacs (March 17) |
Date: |
Fri, 22 Mar 2019 15:12:16 +0100 |
22 mars 2019 kl. 14.26 skrev Stephen Leake <address@hidden>:
>
> I recently ran into a problem with this; I had a regexp with `-' at the
> end, then edited it to add another range, without noticing the trailing
> `-':
>
> before: [0-9a-zA-Z_-]
> after: [0-9a-zA-Z_-\x80-\U0010FFFF]
(Beside the point really, but [\x80-\U0010FFFF] is an empty set since that \x80
is a raw byte with code 0x3fff80.
Presumably you meant \u0080-\U0010FFFF.)
> So putting it first is better. It does not conflict with putting `]'
> first;
>
> []-...]
>
> is unambiguous.
[]-x] means the range ] to x, not the set of ], - and x.
- Re: Scan of regexps in Emacs (March 17), (continued)
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/20
- RE: Scan of regexps in Emacs (March 17), Drew Adams, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Paul Eggert, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Eli Zaretskii, 2019/03/20
- RE: Scan of regexps in Emacs (March 17), Drew Adams, 2019/03/21
- Re: Scan of regexps in Emacs (March 17), Eli Zaretskii, 2019/03/21
- Re: Scan of regexps in Emacs (March 17), Stefan Monnier, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/21
- Re: Scan of regexps in Emacs (March 17), Richard Stallman, 2019/03/20
- Re: Scan of regexps in Emacs (March 17), Stephen Leake, 2019/03/22
- Re: Scan of regexps in Emacs (March 17),
Mattias Engdegård <=
- Re: Scan of regexps in Emacs (March 17), Stefan Monnier, 2019/03/22
- Re: Scan of regexps in Emacs (March 17), Mattias Engdegård, 2019/03/20