Re: [PHP] Same pattern, ereg_replace catches it, ereg doesn't

2003-07-24 Thread Curt Zirzow
* Thus wrote Reuben D. Budiardja ([EMAIL PROTECTED]): > > Hi all, > My guess is I miss something really dumb, but here is my problem. I want to > use ereg to find some pattern, but it doesn't seems to work. The same pattern > uses with ereg_replace, works fine and replaced the pattern. Here is m

[PHP] Same pattern, ereg_replace catches it, ereg doesn't

2003-07-24 Thread Reuben D. Budiardja
Hi all, My guess is I miss something really dumb, but here is my problem. I want to use ereg to find some pattern, but it doesn't seems to work. The same pattern uses with ereg_replace, works fine and replaced the pattern. Here is my code, and the output: // OUTPUT : String is: This is a %AN