|
From: | bitterspetey |
Subject: | Re: replacing phrases: matching line feeds in regular expressions, since \s- doesn't work |
Date: | Sat, 18 Feb 2012 15:30:39 -0800 (PST) |
query-replace
does not seem to work across newlines (to my surprise).
foo[\s^J]bar
also does not work; I thought \s-
was supposed to match any whitespace, including newline, and not be interpreted as part of a range in this case.
This one below does work, and thank you! But as you say, it's kludgy. Is this really the best emacs can do to replace a phrase?! Why doesn't \s-
work in this context? Is there no way to match any whitespace?
[Prev in Thread] | Current Thread | [Next in Thread] |