[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: xr
From: |
Stefan Monnier |
Subject: |
Re: [ELPA] New package: xr |
Date: |
Thu, 28 Feb 2019 18:06:49 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> one-or-more 1+ +
> zero-or-more 0+ *
> zero-or-one optional opt ?
I'm definitely in favor of using the standard * + and ?
> any char in
I think I prefer `char` or `in`.
> line-start bol
> line-end eol
> string-start buffer-start bos bot
> string-end buffer-end eos eot
> word-start bow
> word-end eow
I like the boX/eoX nomenclature.
The main benefit of RX is to make the structure more visible, and the
main downside is to make regexp more verbose, so I think short
identifiers are preferable.
> sequence seq and :
I'm strongly opposed to `and` because that should mean the
conjunction/intersection of two regexps (i.e. a string matches it only
if it matches both sub-regexps) rather than the sequential concatenation.
[ lex.el supports such intersections. ]
Stefan
Re: [ELPA] New package: xr, Michael Heerdegen, 2019/02/27