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

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

(rx regexp to remove space and new lines


From: Jean Louis
Subject: (rx regexp to remove space and new lines
Date: Mon, 12 Sep 2022 12:25:58 +0300

I would like to construct rx regexp to remove both whitespace
characters and new line "\n" to replace it with only one space " ".

How to do it?

(string-replace (rx (one-or-more (any "\n" "[[:space:]]"))) " " sql)))))



Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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