Re: For the RegExps gurus!
| From: | (~~~i LeoNid ~~) | Date: | Fri, 07 Sep 2001 16:43:24 +0000 |
| Subject: | Re: For the RegExps gurus! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66443@lists.php.net to get a copy of this message | ||
On Fri, 7 Sep 2001 09:39:37 +0200 impersonator of renze@datalink.nl (*
R&Ze:) planted &I saw in php.general:
><Original message>
>From: ~~~i LeoNid ~~ <nux@hosting.front.ru>
>Date: Thu, Sep 06, 2001 at 05:30:44PM +0000
>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 (I give it for free this time:)
>>
>> No /me, no ereg, no nothing - gentleMen:)-just /i (did you miss it, btw?:)
>
></Original message>
>
><Reply>
>
>If you look at the stuff you sent you'll understand why I improved
>it.
>
You didn't. Actually please expose - tell i tell i:). I am all ears:)
>Btw... why the h*ll do you explode() the string you're matching,
>while there's the /m modifier? You're making it to difficult for
>yourself (and others). No need for the messy solution you created...
Well. So much fuss of so little issue. I admit, It was just a quick
addition for the posting without much thinking (may be just to add $Harlem
variable:). You can do without exploding - and no need for other code
alterations there, I believe. No need in /m either (Correct me, if I am
wrong:), coz I am not checking on beginning or end of string. What other
"mess" you have noticed:)
>Just use RE's that are as simple as possible. It has the best
>performance and it reads a lot easier.
>
? RE ? Sorry, I am not a club insider:)
Please,
></Reply>