On Thu, 20 Sep 2001 10:37:58 +0200 impersonator of [EMAIL PROTECTED] (*
RZe:) planted I saw in php.general:
again. And believe me: IT'S A LOT OF RAIN HERE!
Its raining back, Aleluia:) Like in UK reign inG foggy Albion:)? I
can understand you, I used to live in St. Petersburg.. Or do you mean
Halo! Good to see you back:)
Thanks :) Same here! ...oh... wait; _I_ was the one a was away...
Well... anyway: good to be back!
I've been away on vacation, so it's a bit late, but anyway...
Indeed late.. Had a good one?
Yep! Sun in France io rain in Holland. But :( I'm back in the rain
On Mon, 17 Sep 2001 13:15:08 +0200 impersonator of [EMAIL PROTECTED] (*
RZe:) planted I saw in php.general:
Ehhh... hai!
Halo! Good to see you back:)
I've been away on vacation, so it's a bit late, but anyway...
Indeed late.. Had a good one?
You didn't. Actually please expose - tell i tell
Ehhh... hai!
I've been away on vacation, so it's a bit late, but anyway...
You didn't. Actually please expose - tell i tell i:). I am all ears:)
I meant I improved my own versions, not you're version. That's why
you can't find the improvement on you're code. If that's what you
meant...
?
Original message
From: ~~~i LeoNid ~~ [EMAIL PROTECTED]
Date: Thu, Sep 06, 2001 at 05:30:44PM +
Message-ID: 3b97b222.78196206@localhost
Subject: Re: [PHP] For the RegExps gurus!
You can keep improving:) or you can use piece of my working (except for
$Harlem, to which i am not going:) code
On Fri, 7 Sep 2001 09:39:37 +0200 impersonator of [EMAIL PROTECTED] (*
RZe:) planted I saw in php.general:
Original message
From: ~~~i LeoNid ~~ [EMAIL PROTECTED]
Date: Thu, Sep 06, 2001 at 05:30:44PM +
Message-ID: 3b97b222.78196206@localhost
Subject: Re: [PHP] For the RegExps gurus!
You
ssage-ID: [EMAIL PROTECTED]
Subject: [PHP] For the RegExps gurus!
I want to write a RegExp that converts something like this:
$mem =
Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world www.helloworld.com
how can I write a single regexp that conve
Sort of yes
I thought it can be done with the /e modifier!
Well... the /e modifier is used. But you have a different problem,
you're matching over multiple lines. That's what the /m modifier is
for.
Can't it be done with pure RegExps?
Ehh... no. How would you implement an if-statement
Ehh... no. How would you implement an if-statement then?
I thought I could have build a regexp that allow you to specify a default
value of a subset if it was not matched...
and it seems there is no way then!
Thanks Renze.
* RZe: [EMAIL PROTECTED] wrote in message
[EMAIL
Original message
From: _lallous [EMAIL PROTECTED]
Date: Thu, Sep 06, 2001 at 11:34:45AM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] For the RegExps gurus!
Ehh... no. How would you implement an if-statement then?
I thought I could have build a regexp that allow you to specify
And another option...
--- PHP code ---
PRE
?php
$mem = Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world www.helloworld.com;
/* -- ! First regexp ! -- */
// $mem = preg_replace (/\s+([http:|ftp:]{0,1}\S+\.\S+)/me, ' A
// href=\'.
//
Thanks alot man!
They are all still using /e switch... ;)
* RZe: [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
And another option...
--- PHP code ---
PRE
?php
$mem = Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello
The reason I don't want to use the /e switch is that i'll be able to port
that expression to perl or to javascript.
* RZe: [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
And another option...
--- PHP code ---
PRE
?php
$mem = Hello world!
Original message
From: _lallous [EMAIL PROTECTED]
Date: Thu, Sep 06, 2001 at 02:28:03PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] For the RegExps gurus!
Thanks alot man!
They are all still using /e switch... ;)
/Original message
Reply
Yep... still using /e switch. I'm
Got another solution. So far the first solution not using the /e
modifier. It's not realy the best solution, but I'm still trying to
improve it. Getting closer every time...
--- PHP code ---
PRE
?php
$mem = Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world
Okay... this time an even better solution, without the /e modifier.
Think this comes pretty close to some final solution.
--- PHP code ---
PRE
?php
$mem = Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world www.helloworld.com;
/* -- ! Fifth regexp !
And here is version 5.2!
I optimized the search patterns. I found out that there was only a
very limited scope of URL's that was matched... So I pretty much
fixed that now (see the example).
Repeating elements from the patterns have been extracted and put in
an array, so that you can easily see
On Wed, 5 Sep 2001 12:15:34 +0200 impersonator of [EMAIL PROTECTED] (*
RZe:) planted I saw in php.general:
This should do the job:
...
You can keep improving:) or you can use piece of my working (except for
$Harlem, to which i am not going:) code (I give it for free this time:)
No /me, no
I want to write a RegExp that converts something like this:
$mem =
Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world www.helloworld.com
how can I write a single regexp that converts $mem to this:
$mem =
Hello world! a
Original message
From: _lallous [EMAIL PROTECTED]
Date: Wed, Sep 05, 2001 at 12:17:21PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] For the RegExps gurus!
I want to write a RegExp that converts something like this:
$mem =
Hello world! http://www.helloworld.com\n
Hello world! ftp
20 matches
Mail list logo