Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Fri, 28 Jan 2011 20:36:19 +0100 From: Luuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en_US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: help to debug a simple php preg_replace References: <2c7b60f6-4912-46bf-8a85-71068de9e4f8@d17g2000vbn.googlegroups.com> <580a9839-2cec-4a9b-b54e-6785f0ccd1c0@d1g2000yqb.googlegroups.com> In-Reply-To: <580a9839-2cec-4a9b-b54e-6785f0ccd1c0@d1g2000yqb.googlegroups.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: Lines: 15 NNTP-Posting-Host: 80.101.116.74 X-Trace: 1296243376 news.xs4all.nl 81485 [::ffff:80.101.116.74]:54745 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:11244 On 28-01-11 19:46, Joe wrote: > I found it - it's not regular expression or preg_replace construct, > but my logic problem (multiple $hyprtext lines result in only the last > one taking effect). > > joe indeed, so replate $hyprtext with $textline everywhere in your (previously posted) code, and you will be fine.. -- Luuk