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

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

delete whitespace lines with replace-regexp


From: oliver
Subject: delete whitespace lines with replace-regexp
Date: Thu, 12 Jul 2007 16:53:37 +1000

hello

i want to use query-replace-regexp or replace-regexp to delete all lines 
contain only whitespace.

so i tried the the command with the search regexp "^\s-*$^J" (with ^J as in 
ctrl-q ctrl-j) and an empty replacement. nothing gets replaced.

what's wrong?

thanks, olli




reply via email to

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