From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14325 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.gnus.user Subject: About toothpicks (was Re: nnimap-split-fancy) Date: Fri, 17 Dec 2010 18:30:39 +0100 Message-ID: <87aak4488w.fsf_-_@gmail.com> References: <87fwtwzqm5.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292607188 32616 80.91.229.12 (17 Dec 2010 17:33:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 17:33:08 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Tommy Kelly Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 17 18:33:04 2010 Return-path: Envelope-to: gegu-info-gnus-english@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 1PTeAx-0002Ia-HQ for gegu-info-gnus-english@m.gmane.org; Fri, 17 Dec 2010 18:33:03 +0100 Original-Received: from localhost ([127.0.0.1]:48971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTeAx-0004Sk-0g for gegu-info-gnus-english@m.gmane.org; Fri, 17 Dec 2010 12:33:03 -0500 Original-Received: from [140.186.70.92] (port=48559 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTeAs-0004SH-1m for info-gnus-english@gnu.org; Fri, 17 Dec 2010 12:33:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTeAo-0008FP-ED for info-gnus-english@gnu.org; Fri, 17 Dec 2010 12:32:57 -0500 Original-Received: from mail-fx0-f48.google.com ([209.85.161.48]:33567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTeAo-0008FC-3e for info-gnus-english@gnu.org; Fri, 17 Dec 2010 12:32:54 -0500 Original-Received: by fxm2 with SMTP id 2so871943fxm.35 for ; Fri, 17 Dec 2010 09:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=5G+4+NkdrdsKqxMb0BURBwwrXl7kQ28UT+H4CH59PC8=; b=sv755prj3CsTXnbA8hyqf0MAye1/ViVe+Nsj+0Q1q1AGcz/MAdvY/dJz6Qvn2Y0BmS A6+NPNp6MQygnsHQcPa6IAoc+l0sDQ8tZfmegun1YifqmOFVZqxyVBAI8mRS1F5XHyy7 EDYlv1jnDa42kHsBMdKZwvopG//KLKb8hXwuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=kUb+2WyFRoSRrrI7bi8Qmrm724CsU6uuiWQWzbHW1n7bG6sDVVQ67B+o0baufa8XX1 yA8J177MHodt2ObBA4/hPIdLMFkrflwR0FOaKZTJa9Dptz6UebfpfBn6+z++cDpx3hhA bU+t3kwl79m7dBblsOOoZShDf7uEgawBeyrcM= Original-Received: by 10.223.81.79 with SMTP id w15mr1393794fak.72.1292607164946; Fri, 17 Dec 2010 09:32:44 -0800 (PST) Original-Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id o17sm170059fal.25.2010.12.17.09.32.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 17 Dec 2010 09:32:43 -0800 (PST) In-Reply-To: (Tommy Kelly's message of "Fri, 17 Dec 2010 09:09:13 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14325 Archived-At: Tommy Kelly writes: > asjo@koldfront.dk (Adam Sj=C3=B8gren) writes: >> ... it helps >> pinpointing where I have forgotten some \'s or something (I am used to >> Perls regexp syntax, so remembering all the leaning toothpicks in Emacs >> regexps is sometimes a problem :-)) > > Yeah, me too. For example: why does the . in domain1.com require the > "\\" when included in the fancy split approach, but no toothpicks at all > are needed when the same string is included in the normal (non fancy) > approach? > > At first I assumed it was because in the fancy approach the string is a r= egexp > while in non-fancy it's just a plain string. But that's not true is it? T= he > use of things like "^" and ".*" in non-fancy shows it's a regexp too, > no? It's really simple. '.' matches anything except newline, including a dot. If you want to match a literal dot, you need '\.', but inside lisp strings, double quotes and backslashes must be escaped with a backslash, so what you end up with is "\\.". =C5=A0t=C4=9Bp=C3=A1n