Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51698 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19218 invoked from network); 15 Mar 2011 12:46:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2011 12:46:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.212.171 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.212.171 nm12.bullet.mail.bf1.yahoo.com Received: from [98.139.212.171] ([98.139.212.171:21341] helo=nm12.bullet.mail.bf1.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/B2-03183-98F5F7D4 for ; Tue, 15 Mar 2011 07:46:01 -0500 Received: from [98.139.212.150] by nm12.bullet.mail.bf1.yahoo.com with NNFMP; 15 Mar 2011 12:45:58 -0000 Received: from [98.139.212.219] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 15 Mar 2011 12:45:58 -0000 Received: from [127.0.0.1] by omp1028.mail.bf1.yahoo.com with NNFMP; 15 Mar 2011 12:45:58 -0000 X-Yahoo-Newman-Id: 970595.85483.bm@omp1028.mail.bf1.yahoo.com Received: (qmail 53056 invoked from network); 15 Mar 2011 12:45:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=bNFN+/+cJUUQErbXrkmSDTctePj+fa/FeM8P+iZNXTfeo0/rzIPMzc9FDoRuywcKAcOujwT0jdz0obalrOLRBeVlKhqvkMGf4GTDJd0nKzvg55EGIYtsfLM3l4hUXhHyYwpXV8V7c61KU9CbYrSJI1dyWJ3vgcg1oRDEO8geAqc= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1300193158; bh=YyLBgbknGdP76dugKtlAaJqM2yjqP1ZYMMFeJo0HwZE=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Nac0ecez1T0aVpAeUtzObQPPrs49RQgRiUPl02UFecFFKEm9tDGstP+IGKl+9vbSjW59B5iA+Cu/wiotBUv54dSlO5G5qBoiB5mqzd0srzGCmEJx5F2/xRax8juf1DZJJSb0pKAPkLfR5wtymCTLCUzoMpQXvS9k6jEKirBQv44= Received: from thought.local (mail_ben_schmidt@203.217.72.107 with plain) by smtp144.mail.mud.yahoo.com with SMTP; 15 Mar 2011 05:45:58 -0700 PDT X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: 5dRg.DcVM1kq7t5Yqhxh2dy6TC3SqtXDN3h.3tgLa_fkIXU tRn2CsuMpnHzQ2s7rxIHuLdlottKxPKl6MZEP2Q3y3kROm4EFgxlUyRlmu1S yPZxLMuYBcdwtF6vQe7EoU1LYC1aRuP6UKU16h1_F7wWYLvDD2hiDA0ORlAt j.F_mlDdlJ7c8atTNmxDaZbUexEkxJVbCHu2baZkb3cjwnwVdXFjlFA8sLSY oHXFsUfpiOlNsemZFfXfapasB6XKHNCRoWNAXQMa54WPJnFPzmPo4jFu.1Sl eeSnbzVTbOgiBrZU- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4D7F5F83.3040109@yahoo.com.au> Date: Tue, 15 Mar 2011 23:45:55 +1100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: RQuadling@googlemail.com CC: internals@lists.php.net References: <4D7F5E96.8040507@yahoo.com.au> In-Reply-To: <4D7F5E96.8040507@yahoo.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] preg_replace does not replace all occurrences From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) > Now, here is a pattern which actually means "a quote which doesn't > already have a backslash before it" which is achieved by means of a > lookbehind assertion, which, even when searching the string after the > first match, "'str", still 'looks back' on the earlier part of the > string to recognise the second quote is not preceded by a backslash and > match a second time: > > /(^|(? > As a PHP single-quoted string this is: > > '/(^|(?