Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id q14BgamA024330 for ; Sat, 4 Feb 2012 12:42:37 +0100 Received: (qmail 16697 invoked by alias); 4 Feb 2012 11:42:28 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 04 Feb 2012 11:42:27 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx068) with SMTP; 04 Feb 2012 12:42:27 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q14BeIXK007005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 4 Feb 2012 12:40:18 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id q13N1FFS014585; Sat, 4 Feb 2012 12:40:17 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1932942 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 4 Feb 2012 12:40:17 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id q14BeH2j002048 for ; Sat, 4 Feb 2012 12:40:17 +0100 Received: from neptune.ucc.ie (neptune.ucc.ie [143.239.153.183]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q14Be1tB006896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Feb 2012 12:40:05 +0100 Received: from csmvddesktop (csmvddesktop.ucc.ie [143.239.74.97]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dongen) by neptune.ucc.ie (Postfix) with ESMTPSA id C0F9F201FA for ; Sat, 4 Feb 2012 11:40:19 +0000 (GMT) References: <4F2A68F9.1010508@morningstar2.co.uk> <20120202111808.GA15304@csmvddesktop> <20120202131844.GA16372@csmvddesktop> <20120202133153.GA16604@csmvddesktop> <20120203151218.GA30208@csmvddesktop> <4F2BFFA6.1020306@morningstar2.co.uk> <20120203155926.GA30436@csmvddesktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Message-ID: <20120204114447.GA1532@csmvddesktop> Date: Sat, 4 Feb 2012 11:44:47 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: dongen Subject: Re: Mapping Functions Versions for All and Some To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6scdPqt3b0GISnHn9U+AQswDFAu/eiXT1GYAPbVbIQp3blWu3NHzd7KPxRB 1OAmBY2Ds9+FRv+jwkF+qcaeIXcduWzpgUkHkbLjjTwpYP/QhYCXEYK/wjWGL2Kv1wHC510H2iqe FSwI2sm8ppaYnsjcYRHUA3sWaVZ7Mj6ndTXCqvmauFbCtYit9Td0uUhCsM=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 7019 * Bruno Le Floch [2012-02-03 15:01:01 -0500]: : Joseph is right. Regular expression matching is already tough enough : to not try to do it expandably (besides, that would become : unreasonably slow, and would break in corner cases). What you seem to : be trying can be done as follows instead: : : \regex_match:nnTF {o} {o} : { \xdef\foo{0,0} } : { \xdef\foo{1,1} } Thanks Bruno. I finally manged to do the parsing correctly. I had to jump through lots of hoops. I have a couple of comments about the regex API (overall it's fine). o On pages 2--4 I'd give some examples for each of the different regular expressions. I've use regular sed expressions a lot but I couldn't always understand the perl/POSIX regexpression. In the following, I've added a few questions about this. o Suggestion: Instead of Quantification, you could consider closure (as in .*: Kleene closure). o What is the difference between greedy and lazy matching? o I think I understand the difference, but it would be nice to explain the difference between capturing and non-capturing groups. o In the documentation, it is not clear what you mean by : is it a TeX token list or an expl3 token list variable. o I really missed a regex_match for matching on an expl3 token list argument:) o Page 7: zeroeth -> zeroth. Regards, Marc van Dongen