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

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

Re: (rx regexp to remove space and new lines


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

<tomas@tuxteam.de> writes:


> > (string-replace (rx (one-or-more (any "\n" "[[:space:]]"))) " " sql)))))
>
> This looks about correct, so I don't understand your question. In which way
> this does fail? Don't make us solve riddles ;-)

When you eval that `rx' expression you see that you get ... something.

> I'm not very fluent on Rx, but I'd double check whether it takes
> "[[:space:]]" as syntax.

No, strings match literally.

Michael.




reply via email to

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