From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: [OT] Re: Raw strings (experimental patches inside) Date: Fri, 10 Aug 2012 11:37:47 +0530 Message-ID: <87txwb5lfw.fsf_-_@gmail.com> References: <651F6603-F798-4381-929E-7D86A28DBC4D@gmail.com> <502464D6.4000103@gmail.com> <87wr1749m0.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344578871 7470 80.91.229.3 (10 Aug 2012 06:07:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2012 06:07:51 +0000 (UTC) Cc: Help GNU Emacs To: Vr Rm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 08:07:51 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SziNz-0003Rx-Dj for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 08:07:51 +0200 Original-Received: from localhost ([::1]:57975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SziNy-0007Nz-5J for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2012 02:07:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SziNs-0007Nu-K4 for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 02:07:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SziNq-00044U-L8 for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 02:07:44 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:38851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SziNq-00044Q-GZ for help-gnu-emacs@gnu.org; Fri, 10 Aug 2012 02:07:42 -0400 Original-Received: by yenl1 with SMTP id l1so1391811yen.0 for ; Thu, 09 Aug 2012 23:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ke2ZnGxbQ4oNI4agJ30+yT03O5oP6syzG6FVQCn3+sU=; b=fpZYkm9L1uOCKDzHo4hFxV8uj2/2POq3YYU43YypeXkaMXJS2s+mTF9q7o3CP1dr9O RtQ9ACZ7jws9Ud8cfQ8ExtVHSVRxnQVr0U9Rk2PWJC/LsmMJ93YPS+iQKl3FuqrrXVXS K0seEpxQ4Oc6yNH5iRVLXKHOqcdbC8rtPDh2l9vZ7SMF3OE/hZfxg9zDWmuyY0le2Rhu IydrLP0UL8tN2MuubNa7wDI1s6zfAPRJfjQIcOmVu2VL7TPfyCpfdNh9FsTK/se3iCR6 rN6B9es2602kaZ9kILBFZ7aIGU/z7x05dUtSzGCyzXRcLaKFCIpK+CkwHhkE978QOU4q zNBA== Original-Received: by 10.66.78.99 with SMTP id a3mr3896128pax.22.1344578861643; Thu, 09 Aug 2012 23:07:41 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.130.8]) by mx.google.com with ESMTPS id ru4sm2667621pbc.66.2012.08.09.23.07.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Aug 2012 23:07:40 -0700 (PDT) In-Reply-To: <87wr1749m0.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Fri, 10 Aug 2012 14:08:39 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 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:86281 Archived-At: Thought I would post this to help-gnu-emacs. > It's hard to see how they can be simplified -- as used in all > languages I know, regexps are extremely compact notation. If someone is comfortable with lisp-sytax, one can use `rx' and `rx-to-string' etc to create intuitive and human-readable regexps. In re-builder, with `reb-re-syntax' set to `re', an expression like this '(one-or-more ?\n) with a `reb-re-copy' leads to a fairly difficult to decode regex like this: "\\(?: +\\)" It is easy to guess what the first one does. Not so easy, with the second one. This together with some rote-learning like - if there are two-backslashes replace them with a single-backslash or vice-versa - will get one reasonably very far. --