From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: string searching and saving results to a variable Date: Thu, 17 Feb 2011 05:51:54 -0500 Message-ID: <4D5CFDCA.3040705@mousecar.com> References: <4D5B0901.5080100@mousecar.com> Reply-To: gebser@mousecar.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297939980 21334 80.91.229.12 (17 Feb 2011 10:53:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 10:53:00 +0000 (UTC) To: GNU Emacs List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 17 11:52:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq1Tj-00049z-V8 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Feb 2011 11:52:56 +0100 Original-Received: from localhost ([127.0.0.1]:39504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq1Tj-0005WD-GG for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Feb 2011 05:52:55 -0500 Original-Received: from [140.186.70.92] (port=59704 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq1Ss-0004zj-Ce for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 05:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq1Sq-00048r-V0 for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 05:52:02 -0500 Original-Received: from mout.perfora.net ([74.208.4.194]:54610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq1Sq-00048T-Qe for help-gnu-emacs@gnu.org; Thu, 17 Feb 2011 05:52:00 -0500 Original-Received: from dellap.mousecar.net (dsl093-011-016.cle1.dsl.speakeasy.net [66.93.11.16]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MDiOk-1Prbu63nu2-00HQro; Thu, 17 Feb 2011 05:51:58 -0500 User-Agent: Thunderbird 2.0.0.24 (X11/20101213) In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=5AD091E7 X-Provags-ID: V02:K0:H47K9Rz+0aww8Asuw7RfIwIQ9/sf0xxzCsqHMLq2J4y Pea6JVvJ4apPpPP0oI7eK7OFkgxtur710zyi3xRmgiuXus2+jq /gjh8mXzQuEzM/KlxzNneyl3eqA+SFIZndlv4XPFHavdh7azJA LK4OVs3/9FkGAMTrfoZwmUpG7kn8eA/3Zpsh6/MRxEEDVK0H3X 7OYJA2k2UshXj0AMXbg7V+5pkOZtNevroA7D39aehQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.194 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79185 Archived-At: On 02/15/2011 06:33 PM Perry Smith wrote: > On Feb 15, 2011, at 5:15 PM, ken wrote: > >> .... >> >>

Section 4

>> >> but it could be multiple lines like this >> >>

On >> the origins of elisp confusion

>> >> It could even be three or four lines long. Also, the line(s) could be >> indented and so have unwanted white space in the first several columns. >> >> .... Thanks, Perry. That got me through that step. Next little thing: I want to check if the initial heading tag might *already* contain the "name" attribute. So with the point at the start of that tag, I'd do something like this: (re-search-forward "name=\"\\|name[whitespace]=\"\\|name[whitespace]=[whitespace]\"" end-heading nil nil) Is there a shortcut way in elisp to express any and all combinations of whitespace...? if not, how to do this? tia, ken