Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11244

Re: help to debug a simple php preg_replace

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 <Luuk@invalid.lan>
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> <cbd93070-8f10-4376-8ff4-aa1810beef62@g1g2000prb.googlegroups.com> <jscb18-fbm.ln1@luuk.invalid.lan> <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 <feib18-l6o.ln1@luuk.invalid.lan> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: help to debug a simple php preg_replace Joe <juliani.moon@gmail.com> - 2011-01-28 10:46 -0800
  Re: help to debug a simple php preg_replace Luuk <Luuk@invalid.lan> - 2011-01-28 20:36 +0100

csiph-web