> From: "Ryan A" <[EMAIL PROTECTED]>
> $content = str_replace($matches[$index][0],$value,$content);
>
> If you are interested in seeing the whole script, just scroll down.
I'm not... but thanks. Did you read what I wrote? using preg_match twice and then
str_replace is a waste. Learn to use preg_
> From: "Ryan A" <[EMAIL PROTECTED]>
> Below is my code for a templating kind of script, it basically searches for
> 'tags' like this {movies 30} and replaces them, the problem is that if there
> are 2 tags (eg: {movies 30}{movies 60}) it only replaces the first one...so
> I tried using a preg_mat
Hi,
Below is my code for a templating kind of script, it basically searches for
'tags' like this {movies 30} and replaces them, the problem is that if there
are 2 tags (eg: {movies 30}{movies 60}) it only replaces the first one...so
I tried using a preg_match_all...
I tried using a preg_match_all
John W. Holmes wrote:
damn... i left out the ending delimiter, too.. :)
Chalk one up to Monday. ;)
--
***
* _ __ __ __ _ * John Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ _
From: "John W. Holmes" <[EMAIL PROTECTED]>
> From: "Jeff McKeon" <[EMAIL PROTECTED]>
>
> > Can anyone see why I'm getting this error message:
> >
> > "Warning: No ending delimiter '^' found in
> > C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126"
> >
> > From this line:
> >
> > if(preg_match_al
From: "Jeff McKeon" <[EMAIL PROTECTED]>
> Can anyone see why I'm getting this error message:
>
> "Warning: No ending delimiter '^' found in
> C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126"
>
> From this line:
>
> if(preg_match_all("^([00])?.*$",$called,$found))
Because you do not have an e
Jeff McKeon wrote:
Can anyone see why I'm getting this error message:
"Warning: No ending delimiter '^' found in
C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126"
From this line:
if(preg_match_all("^([00])?.*$",$called,$found))
{
substring($called,2,9);
}
I basi
Can anyone see why I'm getting this error message:
"Warning: No ending delimiter '^' found in
C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126"
>From this line:
if(preg_match_all("^([00])?.*$",$called,$found))
{
substring($called,2,9);
}
I basically have a ph
> Hi, I'm a frog (french),
>
> I,ve some troubles with the preg_match_all function.
>
>
> $strSearchWords = Trim($search);
> $pattern = $strSearchWords;
>
> andwhile (!feof($openFile))
> {
> $strFileContents .= fgets(
Hi, I'm a frog (french),
I,ve some troubles with the preg_match_all function.
$strSearchWords = Trim($search);
$pattern = $strSearchWords;
andwhile (!feof($openFile))
{
$strFileContents .= fgets($openFile, 4096);
10 matches
Mail list logo