🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219982

Re: zmienna w wyrazeniu regularnym

#219982
From: Lemat
Date: Sun, 02 Aug 2009 17:04
15 lines
1302 bytes
Lech Dubrowski wrote:

>> <?php
>> $zmienna = 'Ala';
> 
> A czy pojdzie takie wyrazenie $regexp = "/(.*){$zmienna}(.*)/"; bo
> chcialbym wybierac cale wiersze z pliku zawierajace te zmienna?

zrób sobie echo $regexp;
bo regexp jest zwykłym tekstem i nie ma znaczenia z czego jest skonstruowany 
o ile jest w końcu poprawny.

-- 
Pozdrawiam
Lemat
Technical Details
Message-ID: <h54hhd$k8f$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <h5443f$4qm$1@nemesis.news.neostrada.pl> <h544em$56u$1@nemesis.news.neostrada.pl> <h546pa$5th$1@atlantis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: Lemat <#@lemat.priv.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: zmienna w wyrazeniu regularnym
Followup-To: pl.comp.lang.php
Date: Sun, 02 Aug 2009 19:04:23 +0200
Organization: lemat.priv.pl
Lines: 17
Message-ID: <h54hhd$k8f$1@nemesis.news.neostrada.pl>
References: <h5443f$4qm$1@nemesis.news.neostrada.pl> <h544em$56u$1@nemesis.news.neostrada.pl> <h546pa$5th$1@atlantis.news.neostrada.pl>
NNTP-Posting-Host: quad.lemat.priv.pl
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1249233261 20751 79.190.106.116 (2 Aug 2009 17:14:21 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Sun, 2 Aug 2009 17:14:21 +0000 (UTC)
User-Agent: KNode/0.99.01
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit