Article View: pl.comp.lang.php
Article #232324Re: preg_replace problem
From: Borys Pogoreło
Date: Sat, 13 Apr 2019 22:39
Date: Sat, 13 Apr 2019 22:39
13 lines
1212 bytes
1212 bytes
Dnia Fri, 12 Apr 2019 11:29:52 -0700 (PDT), Rafal Podsiadly napisał(a):
>> Bo podejrzewam, że chcesz uzyskać coś takiego:
>> preg_replace('/([*.|+icotamjeszcze])\\1+/', '$1', $str);
>
> rozważ to
> strip_tags lub htmlspecialchars
Ale jaki to ma związek z oryginalnym pytaniem?
--
Borys Pogoreło
borys(#)leszno,edu,pl
Technical Details
Message-ID:
<1fs1b537lw88t.1x0zapsw9dlgs.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mailReferences:
<q7db0d$ld9$1@news.icm.edu.pl> <11fhfah5y47m1$.k0pjisubosp0.dlg@40tude.net> <af900e93-8c79-4465-9d1e-6d3ec26c66b9@googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mail From: Borys Pogoreło <borys@pl.edu.leszno> Newsgroups: pl.comp.lang.php Subject: Re: preg_replace problem Date: Sun, 14 Apr 2019 00:39:47 +0200 Organization: snafu Lines: 13 Message-ID: <1fs1b537lw88t.1x0zapsw9dlgs.dlg@40tude.net> References: <q7db0d$ld9$1@news.icm.edu.pl> <11fhfah5y47m1$.k0pjisubosp0.dlg@40tude.net> <af900e93-8c79-4465-9d1e-6d3ec26c66b9@googlegroups.com> NNTP-Posting-Host: public-gprs177350.centertel.pl Mime-Version: 1.0 X-Trace: thunar.promontel.net.pl 1555195169 8896 46.134.32.7 (13 Apr 2019 22:39:29 GMT) X-Complaints-To: abuse@promontel.net.pl NNTP-Posting-Date: Sat, 13 Apr 2019 22:39:29 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.14.1pl X-fnord: obey. Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit