Re: Regular Expressions (PCRE library)

From: Date: Sat, 03 Aug 2002 20:39:30 +0000
Subject: Re: Regular Expressions (PCRE library)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-110992@lists.php.net to get a copy of this message
On Sunday 04 August 2002 03:47, Jürgen wrote: > Well, i know it should work, but it does not work. > Even if i Change the first letter into e or E it does not work. > > This is so frustrating, this is prolly the most easiest regular expression > i could start with and yet i fail and nobody seems to know why it aint > working neither.... > > > This should work. However if you're using $test as defined above it does > > not > > > start with 'e' or 'E' so what output did you expect?? So you're saying this: echo preg_replace("/^[eE]/", "A", "Eek!"); Does not result in "Aek!" ? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The problem with graduate students, in general, is that they have to sleep every few days. */

« previous php.general (#110992) next »