[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ugly regexps
From: |
Eli Zaretskii |
Subject: |
Re: Ugly regexps |
Date: |
Wed, 03 Mar 2021 08:00:57 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Tue, 02 Mar 2021 19:32:20 -0500
>
> So you can do
>
> (string-match (ere "\\(def(macro|un|subst) .{1,}"))
>
> instead of
>
> (string-match "(def\\(macro\\|un\\|subst\\) .\\{1,\\}")
Why not use 'rx' in those cases? IMO it makes the regexp even more
easy to write and read.
- Ugly regexps, Stefan Monnier, 2021/03/02
- Re: Ugly regexps, Stefan Kangas, 2021/03/02
- Re: Ugly regexps,
Eli Zaretskii <=
- Re: Ugly regexps, Stefan Monnier, 2021/03/03
- Re: Ugly regexps, Eli Zaretskii, 2021/03/03
- Re: Ugly regexps, Stefan Monnier, 2021/03/03
- Re: Ugly regexps, Stefan Kangas, 2021/03/03
- Re: Ugly regexps, Eli Zaretskii, 2021/03/03
- Re: Ugly regexps, Stefan Kangas, 2021/03/03
- Re: Ugly regexps, Stefan Kangas, 2021/03/03
- Re: Ugly regexps, Stefan Kangas, 2021/03/03
- Re: Ugly regexps, Dmitry Gutov, 2021/03/03
- RE: [External] : Re: Ugly regexps, Drew Adams, 2021/03/03