[Top][All Lists]

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

Re: rx.el sexp regexp syntax

From: Philipp Stephani
Subject: Re: rx.el sexp regexp syntax
Date: Tue, 29 May 2018 10:27:54 +0200

Stefan Monnier <address@hidden> schrieb am Mo., 28. Mai 2018 um 19:16 Uhr:
>>> brutal regexp, but what I *would* use all day long would be a macro that
>>> un-escaped backslashes for me. Ideally:
>> That'd be a good first step.
>> A second important step would be to easily embed comments and Elisp code
>> (mostly references to other Elisp variables).
> rx.el can do all that (with "eval") if I'm not mistaken.

The main problem of RX is not lack of features, but verbosity which for
me makes it disappointingly difficult to read (not always worse than
string regexps, admittedly, but still).

FWIW, I think its verbosity is RX's main *advantage*. It makes regular expressions so much easier to read that I stopped writing regex strings the moment I discovered RX. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]