help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [SOLVED] Re: (rx regexp to remove space and new lines


From: Michael Heerdegen
Subject: Re: [SOLVED] Re: (rx regexp to remove space and new lines
Date: Tue, 13 Sep 2022 04:44:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Jean Louis <bugs@gnu.support> writes:

>    (rx (one-or-more (or "\n" (any whitespace))))

It had been mentioned that newlines count as whitespace.  And
(any CHARCLASS) can be simplified to CHARCLASS.  And you probably want
greedy matching.  You get:

  (rx (+ whitespace))

Michael.




reply via email to

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