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

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

Re: replacing phrases: matching line feeds in regular expressions, since


From: jeremiah . dodds
Subject: Re: replacing phrases: matching line feeds in regular expressions, since \s- doesn't work
Date: Sat, 18 Feb 2012 21:47:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 18.2.2012 um 20:33 schrieb jeremiah.dodds@gmail.com:
>
>> M-x replace-regexp foo[ ^TAB^j]*bar[ ^TAB^j]*baz[ ^TAB^j] RET fbb RET
>
> Exactly! A TAB has to be entered as C-q TAB and a line feed as C-q C-j. The
> textual descriptions of control characters are a bit too complicated. These 
> are
> not the same in different versions of GNU Emacs while the hard ones are since
> eons.

I can't *quite* tell if you're being sarcastic. The thing I wrote is
unnecessary, I'm sure -- I don't use emacs' regular expression support
for much of anything past fairly simple replacements these days,
preferring elisp functions and macros for editing tasks that I could do
with a huge regex.



reply via email to

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