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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php