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

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

How does one avoid matching \n when matching all but whitespace?


From: ld1976
Subject: How does one avoid matching \n when matching all but whitespace?
Date: Sat, 7 Jul 2007 12:59:31 -0700 (PDT)

Hello all. This is a rookie's question.
 I am trying to a simple text regular expression replacement.
The text goes as follows (white spaces may change:
tcl_cmd bla > kuku
I want to change it to:
tcl_cmd bla > kuku.rev1
When trying to use replace-regexp \(>[ ]+[^ ]+\)  to \1.rev1 I get:
tcl_cmd bla > kuku
.rev1
This is quiet different than using the \W+ with perl...
I think that emacs matches within [^ ]+ \n too. Trying to use [^ \n]+ did
not solve the issue either.
Any thoughts?
-Lior
-- 
View this message in context: 
http://www.nabble.com/How-does-one-avoid-matching-%5Cn-when-matching-all-but-whitespace--tf4041646.html#a11481693
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

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