Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20210 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74236 invoked by uid 1010); 20 Nov 2005 23:06:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74221 invoked from network); 20 Nov 2005 23:06:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2005 23:06:36 -0000 X-Host-Fingerprint: 80.249.110.212 xian.ncuk.net Linux 2.5 (sometimes 2.4) (4) Received: from ([80.249.110.212:49993] helo=xian.ncuk.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 89/92-11378-C7101834 for ; Sun, 20 Nov 2005 18:06:36 -0500 To: internals@lists.php.net Date: Sun, 20 Nov 2005 23:06:32 +0000 User-Agent: KMail/1.9 Cc: Christian Schneider References: <00A2E2156BEE8446A81C8881AE117F192C1BB0@companyweb> <4380F6CD.2080203@cschneid.com> <200511202228.01891.pookey@pookey.co.uk> In-Reply-To: <200511202228.01891.pookey@pookey.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13027116.ahOkCZ6nWh"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-ID: <200511202306.33056.pookey@pookey.co.uk> Subject: Re: AW: AW: [PHP-DEV] dropping curly braces From: pookey@pookey.co.uk ("Ian P. Christian") --nextPart13027116.ahOkCZ6nWh Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 20 November 2005 22:27, Ian P. Christian wrote: > If this change included a simple sed command that could be applied to code > to fix 'legacy' code Sorry, should have included this... =46or example:=20 $ cat test $ sed -e 's/$\([a-zA-Z][a-zA-Z0-9]*\){\([0-9]*\)}/substr($\1,\2,1)/g' test =2D-=20 Ian P. Christian ~ http://pookey.co.uk --nextPart13027116.ahOkCZ6nWh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDgQF56jsuvK/fgkoRAp62AJoCzuCTH6t5bI87uMd+cKyTG1yyswCbBCmQ 7w5XUT94KVTOvTJ40rS3VJ0= =Ys6K -----END PGP SIGNATURE----- --nextPart13027116.ahOkCZ6nWh--