Thank you very much!
Understand. And it Works very well now.
Cheers
-Mensagem original-
De: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
Enviada: quinta-feira, 23 de Julho de 2009 00:04
Para: php-general@lists.php.net
Assunto: RE: [PHP] Replace in a string with regex
> -Origi
> -Original Message-
> From: rszeus [mailto:rsz...@gmail.com]
> Sent: 22 July 2009 19:23
> To: 'Jim Lucas'
> Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk; php-
> gene...@lists.php.net
> Subject: RE: [PHP] Replace in a strin
Enviada: quarta-feira, 22 de Julho de 2009 18:44
> Para: rszeus
> Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk;
> php-general@lists.php.net
> Assunto: Re: [PHP] Replace in a string with regex
>
> rszeus wrote:
>> Thank you.
l-
De: Jim Lucas [mailto:li...@cmsws.com]
Enviada: quarta-feira, 22 de Julho de 2009 18:44
Para: rszeus
Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk;
php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
rszeus wrote:
> Thank you. I unde
$2 and $3 ?
> $ " I already knwo it's the (.+?) but the others didnt' get it.
>
> Thank you...
>
> -Mensagem original-
> De: Eddie Drapkin [mailto:oorza...@gmail.com]
> Enviada: quarta-feira, 22 de Julho de 2009 16:03
> Para: a...@ashleysheridan.c
uarta-feira, 22 de Julho de 2009 17:22
Para: rszeus
Cc: 'Eddie Drapkin'; a...@ashleysheridan.co.uk; 'Jim Lucas';
php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
The first match inside () is assigned to $1, the second is assigned to $2, and
so on
ginal-
De: Eddie Drapkin [mailto:oorza...@gmail.com]
Enviada: quarta-feira, 22 de Julho de 2009 14:12
Para: rszeus
Cc: php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
On Wed, Jul 22, 2009 at 9:07 AM, rszeus wrote:
Hi. It Works to remove the _1 but it doesn
...
-Mensagem original-
De: Eddie Drapkin [mailto:oorza...@gmail.com]
Enviada: quarta-feira, 22 de Julho de 2009 16:03
Para: a...@ashleysheridan.co.uk
Cc: Jim Lucas; rszeus; php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
On Wed, Jul 22, 2009 at 11:01 AM, Ashle
On Wed, Jul 22, 2009 at 11:01 AM, Ashley
Sheridan wrote:
> On Wed, 2009-07-22 at 07:54 -0700, Jim Lucas wrote:
>> Sure that can be done. But you will need to change the second argument
>> to have double quotes so it will be parsed by PHP.
>>
>> Then I would surround YOUR variable with curly bracke
quot;$1{$id}$3",
>> $file);
>>
>> > I am confusing " and '.
>> >
>> > Thank you
>> >
>> >
>> > -Mensagem original-
>> > De: Eddie Drapkin [mailto:oorza...@gmail.co
>
> > -Mensagem original-
> > De: Eddie Drapkin [mailto:oorza...@gmail.com]
> > Enviada: quarta-feira, 22 de Julho de 2009 14:12
> > Para: rszeus
> > Cc: php-general@lists.php.net
> > Assunto: Re: [PHP] Replace in a string with regex
> >
"$1{$id}$3",
$file);
> I am confusing " and '.
>
> Thank you
>
>
> -Mensagem original-
> De: Eddie Drapkin [mailto:oorza...@gmail.com]
> Enviada: quarta-feira, 22 de Julho de 2009 14:12
> Para: rszeus
&g
27;.
Thank you
-Mensagem original-
De: Eddie Drapkin [mailto:oorza...@gmail.com]
Enviada: quarta-feira, 22 de Julho de 2009 14:12
Para: rszeus
Cc: php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
On Wed, Jul 22, 2009 at 9:07 AM, rszeus wrote:
>
You can disregard this, it's wrong (I missed a part of the requirements
:) and there's other solutions already provided (my email client is
weird when you switch to a folder it always displays the first entry as
the last read, so sometimes I miss that there are new posts above... I
just switche
rszeus wrote:
Hello,
I’m tryng to make some replacements on a string.
Everything goês fine until the regular expression.
$file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg";
echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925,
'temp/',’_([0-9])’), array(“test”,"",””), $file)
leysheridan.co.uk]
Enviada: quarta-feira, 22 de Julho de 2009 13:20
Para: rszeus
Cc: php-general@lists.php.net
Assunto: Re: [PHP] Replace in a string with regex
On Wed, 2009-07-22 at 13:02 +0100, rszeus wrote:
> Hello,
>
> I’m tryng to make some replacements on a string.
>
> Ever
a: quarta-feira, 22 de Julho de 2009 13:11
> Para: rszeus
> Cc: php-general@lists.php.net
> Assunto: Re: [PHP] Replace in a string with regex
>
> On Wed, Jul 22, 2009 at 8:02 AM, rszeus wrote:
>> Hello,
>>
>> I’m tryng to make some replacements on a string.
>>
php.net
Assunto: Re: [PHP] Replace in a string with regex
On Wed, Jul 22, 2009 at 8:02 AM, rszeus wrote:
> Hello,
>
> I’m tryng to make some replacements on a string.
>
> Everything goês fine until the regular expression.
>
>
>
> $file = "screens/temp/7a45gfdi6icpan1
On Wed, 2009-07-22 at 13:02 +0100, rszeus wrote:
> Hello,
>
> I’m tryng to make some replacements on a string.
>
> Everything goês fine until the regular expression.
>
>
>
> $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg";
>
> echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o
On Wed, Jul 22, 2009 at 8:02 AM, rszeus wrote:
> Hello,
>
> I’m tryng to make some replacements on a string.
>
> Everything goês fine until the regular expression.
>
>
>
> $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg";
>
> echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925,
> 't
20 matches
Mail list logo