all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (rx regexp to remove space and new lines
@ 2022-09-12  9:25 Jean Louis
  2022-09-12 10:13 ` tomas
  0 siblings, 1 reply; 15+ messages in thread
From: Jean Louis @ 2022-09-12  9:25 UTC (permalink / raw)
  To: Help GNU Emacs

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/



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-09-15  8:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12  9:25 (rx regexp to remove space and new lines Jean Louis
2022-09-12 10:13 ` tomas
2022-09-12 10:25   ` Jean Louis
2022-09-12 10:43     ` [SOLVED] " Jean Louis
2022-09-13  2:44       ` Michael Heerdegen
2022-09-13  4:01         ` Jean Louis
2022-09-13 10:19           ` Michael Heerdegen
2022-09-13 10:33             ` tomas
2022-09-13 12:32               ` Michael Heerdegen
2022-09-13 12:48                 ` tomas
2022-09-13 14:29                   ` Michael Albinus
2022-09-14 11:00                     ` Jean Louis
2022-09-15  2:28                       ` Michael Heerdegen
2022-09-15  8:22                         ` Jean Louis
2022-09-13  2:36   ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.