From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jeremiah.dodds@gmail.com Newsgroups: gmane.emacs.help Subject: Re: replacing phrases: matching line feeds in regular expressions, since \s- doesn't work Date: Sat, 18 Feb 2012 22:04:45 -0500 Message-ID: <87pqdbh6b6.fsf@gmail.com> References: <20120218212608.DA22418083E@neo.msri.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329620715 29707 80.91.229.3 (19 Feb 2012 03:05:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2012 03:05:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 19 04:05:14 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ryx5N-0003sl-3i for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Feb 2012 04:05:13 +0100 Original-Received: from localhost ([::1]:43887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryx5M-00051w-He for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 22:05:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:32831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryx5G-00050f-8g for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 22:05:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ryx5D-0001Tq-PM for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 22:05:06 -0500 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:39762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ryx5D-0001T6-IU for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 22:05:03 -0500 Original-Received: by dadv6 with SMTP id v6so4870884dad.0 for ; Sat, 18 Feb 2012 19:05:02 -0800 (PST) Received-SPF: pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.68.195.99 as permitted sender) client-ip=10.68.195.99; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.68.195.99 as permitted sender) smtp.mail=jeremiah.dodds@gmail.com; dkim=pass header.i=jeremiah.dodds@gmail.com Original-Received: from mr.google.com ([10.68.195.99]) by 10.68.195.99 with SMTP id id3mr39794277pbc.149.1329620702489 (num_hops = 1); Sat, 18 Feb 2012 19:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=0weL7kYNIcPJPcDB1qNw7uNTyX0KwPgEaoTTK7g4Xh4=; b=Dchw+0lon9BgjrldcTe/R7RPuTy0GYQ2riMfeo9KWcWicamZdPJ56R7KTKTrTTkCqX XSOLZku7gcqYNkOkphDhTZf7JS1N5F4zbNnYLETNJLpvx5olgrYG+18t+wndpUtAImMr XfGtgv5kMnr40eozTZ13lPmYTkqSg7R9/0U1Q= Original-Received: by 10.68.195.99 with SMTP id id3mr32994289pbc.149.1329620702354; Sat, 18 Feb 2012 19:05:02 -0800 (PST) Original-Received: from destructor (ip98-180-233-170.cl.ri.cox.net. [98.180.233.170]) by mx.google.com with ESMTPS id y5sm9361932pbk.45.2012.02.18.19.04.59 (version=SSLv3 cipher=OTHER); Sat, 18 Feb 2012 19:05:01 -0800 (PST) In-Reply-To: <20120218212608.DA22418083E@neo.msri.org> (Silvio Levy's message of "Sat, 18 Feb 2012 13:26:08 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83799 Archived-At: Silvio Levy writes: > It seems to work for me with 'foo[\s^J]+bar' (no hyphen in the > character class -- the hyphen is for a range, like [a-z]) > > Silvio Ahh, right. '\s-' *does* match characters with a whitespace syntax, but since it's in a character alternative the '-''s meaning as a range-definer takes precedence. As an aside, there are ... a lot of edge cases in the Special Characters in Regular Expressions info node for elisp, even for docs for a regular expression implementation. It might actually serve the purpose of pushing people towards writing functions and using other methods for non-trivial editing tasks.