all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How does one avoid matching \n when matching all but whitespace?
@ 2007-07-07 19:59 ld1976
  2007-07-07 21:26 ` Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: ld1976 @ 2007-07-07 19:59 UTC (permalink / raw)
  To: Help-gnu-emacs


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-08 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.3168.1183840964.32220.help-gnu-emacs@gnu.org>
2007-07-08 12:38 ` How does one avoid matching \n when matching all but whitespace? Tyler Smith
2007-07-07 19:59 ld1976
2007-07-07 21:26 ` Stephen Berman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.