From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Andersson Newsgroups: gmane.emacs.help Subject: Group at several places in string Date: Tue, 12 Jan 2010 23:23:55 +0000 Message-ID: <929ccd881001121523x1d308eic6b5bc059228bc82@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6d7f07aa094d1047cfff25e X-Trace: ger.gmane.org 1263338676 9275 80.91.229.12 (12 Jan 2010 23:24:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 23:24:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 13 00:24:29 2010 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.50) id 1NUq68-0002hV-1f for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 00:24:29 +0100 Original-Received: from localhost ([127.0.0.1]:60768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUq68-0005Uu-Ij for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 18:24:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUq5k-0005U2-Iu for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 18:24:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUq5f-0005Qz-OA for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 18:24:04 -0500 Original-Received: from [199.232.76.173] (port=49297 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUq5f-0005Qr-KJ for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 18:23:59 -0500 Original-Received: from mail-ew0-f209.google.com ([209.85.219.209]:60739) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUq5f-00075G-61 for help-gnu-emacs@gnu.org; Tue, 12 Jan 2010 18:23:59 -0500 Original-Received: by ewy1 with SMTP id 1so5327418ewy.8 for ; Tue, 12 Jan 2010 15:23:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=QCAwAjJU8kAQp0DusuMPFxXcavj88M9zQ2BrMdWUXk8=; b=wMyPCJDAoM/zoc0Clr1FTPiR/RtQGuEODWny++LhgQsG2O67Bxu4GDfCqcIW3Q1poq bz8sn2f8WaREEkfBBGtvbVKDH07aU49L7qheWwFy+tPVbU1CzeQiK1vIpg8lktwhFzWA P1LTPMoC4KXxXdfXj+sVat/SqPIl8Xr/8nk+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qDvSD/xL3OL1G00+/LO1utgv+mAyIAGkJ9T6CvaBcfRCrSU+Dyld1ZJ/mrMkVqZ18E Yr3mr8VSNJEbJbJVxg6R649IT4CifMgjbzX/v8AtYjNb7hMp5Udvc35S2ZXOoldPUsXD z40fV5LOHQ3eKuglcP60Tf827RnV55QY6DRaI= Original-Received: by 10.216.86.203 with SMTP id w53mr2738383wee.58.1263338635956; Tue, 12 Jan 2010 15:23:55 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:71197 Archived-At: --0016e6d7f07aa094d1047cfff25e Content-Type: text/plain; charset=ISO-8859-1 Hi! I have string that contains smaller chunks of text, which are wrapped within double quotes. Example:* Lorem ipsum dolor sit amet, "consectetur" adipiscing elit. Donec "suscipit justo" sit amet sem bibendum "sit amet" porttitor mi pretium. *I'm looking for a way to add all the chunks in double quotes in a list. So in this case: *'("consectetur" "suscipit justo" "sit amet")* I have created such a function with help of some while loops and whatever else. But I thought that it could be done with some regex like this * "\"\\([^\"]+\\)\""* and then fetch the groupings. But it does not work. How would you solve this? Thanks! --0016e6d7f07aa094d1047cfff25e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi!

I have string that contains smaller chunks of text, which=A0 are= wrapped within double quotes. Example:
Lorem ipsum dolor sit amet, &= quot;consectetur" adipiscing elit. Donec "suscipit justo" sit amet sem bibendum "sit amet" porttitor mi pretium= .

I'm looking for a way to add all the chunks in double quot= es in a list. So in this case:
'("consectetur" "su= scipit justo" "sit amet")

I have created such a function= with help of some while loops and whatever else. But I thought that it cou= ld be done with some regex like this "\"\\([^\"]+\\)\&quo= t;" and then fetch the groupings. But it does not work.

How would you solve this?

Thanks!
--0016e6d7f07aa094d1047cfff25e--