[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp matching whitespace including newline
From: |
David Kastrup |
Subject: |
Re: Regexp matching whitespace including newline |
Date: |
Mon, 15 Sep 2008 15:12:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Nordlöw <per.nordlow@gmail.com> writes:
>> Uh, (re-search-forward "\\s-") ?
>
> \\s- does not match newlines in my Emacs.
That depends on the syntax table, and the syntax table tends to depend
on the major mode. When it makes sense in a particular major mode, it
should tend to match. For example, it does so in message-mode for me.
What does C-h s show in your favorite mode?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum