[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regular expression creation [was: Re: Emacs Lisp's future]
From: |
Alexis |
Subject: |
Re: Regular expression creation [was: Re: Emacs Lisp's future] |
Date: |
Fri, 19 Sep 2014 20:07:05 +1000 |
Stefan Monnier writes:
>> debates around raw strings, i still feel something like Stefan's
>> suggestion for a built-in `re-escape` function would probably solve most
>> of the issues i have with ELisp REs.
>
> And note that re-escape should be easy to write. I guess the main issue
> would be to decide what escape character to use (assuming "(" is used for
> regexp-grouping, what should be used to match a plain open-parenthesis?
> "\(" is not an option since it's the same string as "(", so you either
> have to go with "\\(" which (as we know) sucks, or choose another escape
> char than backslash).
Hmm, good point .... Perhaps "!" could be the escape character? It seems
to me like a character that might be less likely to need to be literally
matched (or matched less frequently) than other visible ASCII
characters, and also seems to me to be reasonably memorable for this
purpose ....
Alexis.
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), (continued)
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), Lennart Borgman, 2014/09/16
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), Jorgen Schaefer, 2014/09/17
- Re: Emacs Lisp's future, Lars Brinkhoff, 2014/09/17
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), Lally Singh, 2014/09/17
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), Alexis, 2014/09/17
- Re: Emacs Lisp's future, Daniel Colascione, 2014/09/18
- Regular expression creation [was: Re: Emacs Lisp's future], Alexis, 2014/09/18
- Re: Regular expression creation [was: Re: Emacs Lisp's future], Aurélien Aptel, 2014/09/18
- Re: Regular expression creation [was: Re: Emacs Lisp's future], Alexis, 2014/09/18
- Re: Regular expression creation [was: Re: Emacs Lisp's future], Stefan Monnier, 2014/09/18
- Re: Regular expression creation [was: Re: Emacs Lisp's future],
Alexis <=
- Re: Regular expression creation [was: Re: Emacs Lisp's future], Filipp Gunbin, 2014/09/26
- Re: Regular expression creation [was: Re: Emacs Lisp's future], Daniel Colascione, 2014/09/19
- Re: Emacs Lisp's future, Andreas Röhler, 2014/09/18
- Re: Emacs Lisp's future, Richard Stallman, 2014/09/18
- Re: Emacs Lisp's future, Ivan Andrus, 2014/09/18
- Re: Emacs Lisp's future, Richard Stallman, 2014/09/18
- Re: Emacs Lisp's future, Andreas Röhler, 2014/09/19
- Re: Emacs Lisp's future, Andreas Schwab, 2014/09/19
- Re: Emacs Lisp's future, David Kastrup, 2014/09/19
- Re: Emacs Lisp's future (was: Guile emacs thread (again)), Emilio Lopes, 2014/09/18