|
From: | help-gnu-emacs-owner |
Subject: | help-gnu-emacs post from address@hidden requires approval |
Date: | Sat, 07 Jul 2007 15:59:35 -0400 |
As list administrator, your authorization is requested for the following mailing list posting: List: address@hidden From: address@hidden Subject: How does one avoid matching \n when matching all but whitespace? Reason: Post by non-member to a members-only list At your convenience, visit: http://lists.gnu.org/mailman/admindb/help-gnu-emacs to approve or deny the request.
--- Begin Message ---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.
--- End Message ---
--- Begin Message ---Subject: confirm 09fd21ae53996d9ebb2c18a072398fce4bc2af25 If you reply to this message, keeping the Subject: header intact, Mailman will discard the held message. Do this if the message is spam. If you reply to this message and include an Approved: header with the list password in it, the message will be approved for posting to the list. The Approved: header can also appear in the first line of the body of the reply.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |