Re: [PHP] For the RegExps gurus!

2001-09-21 Thread ~~~i LeoNid ~~
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

Re: [PHP] For the RegExps gurus!

2001-09-20 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-18 Thread ~~~i LeoNid ~~
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

Re: [PHP] For the RegExps gurus!

2001-09-17 Thread * RzE:
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... ?

Re: [PHP] For the RegExps gurus!

2001-09-07 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-07 Thread ~~~i LeoNid ~~
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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=\'. //

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
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!

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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 !

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
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

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread ~~~i LeoNid ~~
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

[PHP] For the RegExps gurus!

2001-09-05 Thread _lallous
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

Re: [PHP] For the RegExps gurus!

2001-09-05 Thread * RzE:
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